csrutil disable
Restart computer
In the terminal, type
sudo open /Applications/TextEdit.app /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist
change
<key>com.apple.ManagedClient.enroll</key>
<true/>
to
<key>com.apple.ManagedClient.enroll</key>
<false/>
So that the changes take effect
This was discussed a while back during the late beta releases. If you have an older Mac (Intel), offline install the previous MacOS, make changes to block mdm as needed (per purpose of this post/thread), then upgrade. Newer Macs based on M2 and newer must come with the newest OS and must be online. The current protection matches the feature set of activation lock for iPhones as in a wiped iPhone must be online to activate. If you activate via usb cable, the internet connection is coming from the activating PC device.