Please add luarocks to epel for el9. I just rebuilt luarocks-3.5.0-1.fc34.src.rpm on an rhel9 system and it works without modification.
luarocks-3.7.0 is in epel9