Square enix has used unreal since KH3, they purposefully didn’t upgrade to UE5 for Rebirth though because the devs had made enough internal tools and procedures for 4 that it didn’t make sense to upgrade yet. Not to mention they were aware of the performance issues of 5 and would rather tackle the devil they know when it came to optimisation.