Error: Failed to build UnrealBuildTool in Manjaro (Unreal Engine 5.0.2)

it seems branch origin/ue5-release-engine-staging is working for me, so far. no idea which version that is exactly but I saw it received updates recently and switched to that one, while release seems to be stale