The clause thus prohibits all legislative acts, “no matter what their form, that apply either to named individuals or to easily ascertainable members of a group in such a way as to inflict punishment on them without a judicial trial. . . .”
(United States v. Lovett)
The article doesn’t talk about inflicting punishment on anybody so your point while interesting doesn’t apply here.