Wouldn’t that be an ex-post facto?
It’s pretty much both, since it is making something illegal after-the-fact (ex post facto), but also the law was arguably passed solely to go after one person (bill of attainder).