I feel you. I could write an essay about Homebrew, instead I'll list the other alternatives. There's pkgsrc[1], MacPorts[2], and Nix[3]. In my experience, none of these are as comprehensive, and each comes with its own quirks. Worth a try, might work for you.
[1]: https://www.pkgsrc.org/, https://pkgsrc.smartos.org/install-on-macos/