Bones are not compatible with Unreal Engine 5

I transferred a character created in CC4 to Blender using an add-on called “Blender Pipeline”. Since CC4 is not specialized for paint makeup, I painted it in Blender, added hair and clothes, and then imported it into Unreal Engine 5. However, as shown in the image here, the bone order is different from the original bone order of Unreal Engine 5, making retargeting difficult. I heard that CC4 is compatible with Unreal Engine 5, but will compatibility be lost if I go through Blender? Please tell me how to solve this.