LisPi (nprofile…k3ke) factory resetting does not save you from MDM enrollment. Samsung, Google, or Apple as appropriate recognize the IMEI and force the device right back into management during the OOB setup process.
Welcome to our dystopian reality, I'm afraid. Your mainstream smartphone is *never* truly yours.