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
Did you add in the hosts file these domains?
Also, did you restart after you ran the commands? If you didn't can you try to do that first and let me know
And just making sure did disable SIP in recovery before running the commands? If you did and you did restart too get little snitch or any other firewall and block internet access to the following services:
/usr/libexec/mdmclient
/usr/libexec/teslad