Uefy 2.0 (Pro Edition) make Blender's rigify rigs compatible with UE5, also has a FREE version

I don’t think that would be possible (or in any case a simple fix). The script makes changes to the metarig and those changes would not exist on characters rigged without the script.