No shit. Protected characteristics are protected for a reason. The idea that someone would be detained for something as inconsequential as their race or religion screams of human rights abuse.
You can’t just detain people because you don’t like how they look or pray or who they sleep with. Arrest and detain people who actually commit crimes—like Nazis or rapists.