The ex post facto provision, if that is what you are referring, applies only to criminal law, and not to any collateral civil consequences such as losing an employment pension stemming from the same criminal conduct.
No Bill of Attainder or ex post facto Law shall be passed.