The workaround works on my MacBook Pro 14" with Monterey.
Delete Xcode and then download and install it from https://developer.apple.com/download/release/
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: