OK, given I just "downgraded" (upgraded?) from Sonoma to Ventura, I can provide some pointers, but if you screw up your machine it's not my fault.
IMPORTANT: THIS WILL WIPE ALL DATA!!! Make sure you have a backup.
0) Backup your data. Maybe do this twice. I was able to find a Time Machine backup from before Sonoma was installed, but it should theoretically work if you have a Time Machine backup taken after Sonoma was installed. The way you will reinstall your files and apps is using Migration Assistant to read your Time Machine backup off an external drive (because Time Machine no longer backs up the OS, like it used to, or a full image backup would). Put your Time Machine Backup on an external drive.
1) You also need a bootable disk containing Ventura. Download Ventura from the App Store using this link. Despite your mac telling you it cannot install Ventura, the downloaded file you require will be put into your Applications folder: How to download and install macOS - Apple Support
2) Grab a USB drive with at least 16GB and follow these instructions to create the bootable Ventura installer using the file in your Applications folder: Create a bootable installer - Apple Support. The terminal command you need is something like: sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
3) You need to enable the ability to boot from an external drive, using Recovery Mode to do this. Follow these instructions: About Startup Security Utility on a Mac with the Apple T2 Security Chip - Apple Support
4) Shutdown your Mac and remove all external drives except the bootable Ventura USB drive.
5) Restart and immediately hold down the OPTION key until Startup Manager appears. Choose your USB drive.
6) Choose Disk Utility -> View -> View ALL attached Drives. Choose the upper-most drive (not the indented volumes below). It's normally called Apple Media, Mac SSD, or similar. Erase this drive and format as APFS with a GUID Partition Map. If you use Bootcamp, leave that partition alone. I was able to leave my Bootcamp install untouched and it works just as it always did after installing Ventura.
7) Once your main Mac drive is wiped, exit Drive Utility and go back to the menu, then choose Install MacOS.
8) Start the installation of Ventura and follow prompts, but don't create an account (as in, don't enter any user details). If you enter new user details, you may end up with permission problems after restoring with Migration Assistant, even if it's the same username you used previously.
9) Open Migration Assistant when provided the option, select the Time Machine backup you saved to an external drive after plugging it in, start the restore process.
10) Migration Assistant seems to do a good job of restoring preferences, passwords, etc. It's honestly not that much of a headache to get everything going again after Migration Assistant completes.
Good luck and I take no responsibility for the above instructions.