The Fifth Circuit has determined that all non-citizens who enter the United States without inspection are subject to mandatory detention under 8 USC 1225.
The full text of Buenrostro- Mendez v. Bondi can be found here:
https://www.ca5.uscourts.gov/opinions/pub/25/25-20496-CV0.pdf