It’s more than ex post facto. It the Legislative attempt to usurp Executive and Judicial power.
This should be dismissed prior to trial.