Can’t open Xcode-14 on macOS-Sonoma?

I recently updated my Macbook to latest macOS Sonoma without reading the “Release Notes”
The next morning when I opened my Macbook and thought of starting my work, I saw my Xcode like 👆
You are reading this hence I assume you are also in the same situation or may be you are smarter and exploring before updating 😉.
I wanted to run Xcode-14 because the codebase had some issue with Xcode-15.
So, figured out that this is not possible. But there is a way via Terminal command
open /Applications/Xcode.app/Contents/MacOS/Xcode
OR
/Applications/Xcode.app/Contents/MacOS/Xcode ; exit;
The only pain point is you’ll have to keep the Terminal open and running the whole time you use the Xcode-14
I hope this helps
Cheers! 🙏