Hello,
It will not work this way, installing components from other versions repo while sitting on the old version. You need to update Plesk to the latest version and then install PHP 8.2
If, for some reason, you would like to continue using unsupported version 18.0.52, you can install PHP from...