It doesn't matter WHEN they were confined (or convicted for that matter) If the crime fits the definition of a sex offender the sex offender sanctions can be supported. The courts have upheld that the retroactive imposition of these is neither a prohibited ex post facto law nor double jeopardy.