If you're not using mise
as your version manager, you really should consider it.
It's become my primary way of installing things, only falling back to Homebrew when absolutely necessary.
Combined with chezmoi
this keeps my tooling in sync across every environment I work in.