Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
You can do a fresh install of Ventura 13.1. You just need to disable/unplug your router so your mac doesn't connect to your wifi automatically (since you need wifi to download the OS at the first step, and later it will automatically connect to it again), after you unplug your router you just need to press "Back" until the Mac restarts, once it's restarted just press next and the message of the DEP will not appear, after a few hours you will see the famous annoying pop-up that everyone knows, if you want to disable it you can do the steps that I posted a few days ago.