It was a bit of a PITA
The PHP that ships with MacOS was old and due to be removed in a future version. I added PHP 7.4.25 with HomeBrew and then added that to the PATH
export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"
export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"
Seemed to do the trick