Updated to macOS 11.5.2 (20G95). Same behavior.
Post
Replies
Boosts
Views
Activity
Solved.
Deleted /Users/.../Library/Developer/Xcode/DerivedData.
Opened Xcode and left it at welcome screen for a minute (still 100%+ CPU usage).
Xcode closed itself (no unexpected error message).
After opening it again the issue was gone.