> The US government has determined that the individual belonged to a gang.

The executive branch has made that allegation. The person didn't have a trial in the judicial branch.

Please look up "habeas corpus", and Article 1 Section 9 Clause 2 of the U.S. Constitution.