Xcode 12 can no longer be installed in monterrey (in theory), despite the error it was extracted in ~Home, move to applications, despite the restriction enter content like this: right click and show package content like this Xcode.app-> Contents->MacOS->Xcode open it or drag it to the terminal and run it. The terminal will open anyway.