As Mark Levin just explained, the prohibition against ex post facto laws applies solely to criminal matters.
Not that I think the Congress should do this anyway.
ex post facto, perhaps. Bills of attainder, no. As the blog points out, Madison explained exactly what he meant by this article of the Constitution, and it was the preservation of contracts.