Getting same issue here with UE5.5.2 on a MBP M1. Generate Project Files right click menu does nothing. Manually forming command in Termal results in the same error as reported above.
Project was created on Windows. On older Intel Mac Mini no issues generating project and building.