I'm using a MacBook Air 2017 version and I recently did a complete reset on the laptop. Since then I've updated to the latest macOS available for the machine and I cannot install Xcode as it requires macOS 13 or later.
How do I get an older version of Xcode through non-shady means so I can practice and not wait until Ventura is released for this MacBook?