I tried it with UE 5.4.4 but same issue, then I found a solution.
Open XCode, go to Xcode → Settings → Locations and select Command Line Tools version even tho it is already selected and has only one option. It asked be for touch-id and after Unreal worked.
This is working for UE 5.4. I haven’t testet it with 5.5 yet.