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

The addon is not designed to automatically convert pre-existing metarigs. It is meant to be used for characters and can also handle simple machines following the process shown in the videos.

But for complex machines you are better off using a custom rig.