You have probably installed VSCode from FlatPak.
And that is the problem (some kind of permision issue) !
You must install using Snap like this :
xxxxxxxxxx
sudo snap install --classic code
Then you can set the phpExecutablePath to : /usr/bin/php
There you have it !