Rocky Linux 9 in GCP module missing

Rocky Linux 9.0 has no modules right now. The current latest PHP you will get (until november) is 8.0.13, installable using dnf install. There will be a php 8.1 module in Rocky Linux 9.1.

If you want php 7.4, you would need to use Rocky Linux 8 or use Remi PHP Repos.