With Text Center.
npx shadcn@latest add @shadcnblocks/separator-separator-with-text-1
Sign in or get a license at Shadcn Blocks to see its source and install it.