I have read a fair bit about Python being a mess on Macs recently, and a few years ago Java was apparently a mess. I don't use a mac so I wouldn't know, but is it really just a case of installing things easily on a Mac?
If it's available on Homebrew and up to date(!), then most of the time it's two or three commands to install. However, when homebrew doesn't do the job 100%, then you are likely better off trying to build from source rather than play around with how homebrew works to "fix" its install
I've had zero problem installing Python and pyenv from Homebrew and just getting things done.