I recently borked my Python 2 installation on Mac OS Mojave. I couldn't reinstall because brew removed
python@2. Or did they?!
I found this post that allows you to reinstall like so:
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/94d572a132a63651739fef1931f540404b7eaa31/Formula/python%402.rb > email@example.com && brew install firstname.lastname@example.org
After running that command I was able to reinstall
python@2 via Homebrew.