Print the list of python version installed:
brew list | grep python
Switch python version
brew unlink python@3.9 brew link --force python@3.8