Ex post facto laws are expressly forbidden by the United States Constitution in Article 1, Section 9, Clause 3. "No Bill of Attainder or ex post facto Law shall be passed." Maybe you are thinking of something else.