Removing CommandLineTools and re-installing it worked for me after my Mac update. Anyone else?
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Pytensor has the below config for me
pytensor.config.cxx = '/usr/bin/clang++'
setting it to below runs the python backend I believe which is another workaround
pytensor.config.cxx = ''