I presume that in your virtual host, where you are trying to install laravel, you have php 7.2, not 7.4
You can check and swith PHP version in Plesk -> subscriptions -> domain.com -> PHP settings
The command
is not relevant in the virtual host context in Plesk.