you have to be sure you installed truly psql. U can check with psql --version
in your terminal.
if you get error you should install with brew install postgresql
brew is good choice for install packages. after install that you should add your path. it will be like that : export PATH="/opt/homebrew/bin:$PATH"
and then restart your terminal and check again.
Regards.