An interesting side note is that many state courts have continued to strike down similar provisions, and some Federal courts have apparently also concluded that certain rules about sex offenders are "punitive" and so constitutionally invalid as outside of the Smith v. Doe rule. So this example is hard to summarize in a simple way, not least because many other courts have been trying to narrow this rule.
https://en.wikipedia.org/wiki/Smith_v._Doe
An interesting side note is that many state courts have continued to strike down similar provisions, and some Federal courts have apparently also concluded that certain rules about sex offenders are "punitive" and so constitutionally invalid as outside of the Smith v. Doe rule. So this example is hard to summarize in a simple way, not least because many other courts have been trying to narrow this rule.