For those having issues with Mac OS 12.3, its because apple have removed python 2. Follow the steps below to get it back working.
1) brew install pyenv
2) pyenv install 2.7.18
3) ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"
4) install the updated alfred workflow with the link below https://github.com/alfredapp/updated-third-party-python2-workflows/raw/main/Workflows/Google Authenticator.alfredworkflow