The constitution does not allow ex-post facto prosecutions.
But the laws have remained on the books. The only reason they have gone unenforced has been that unconstitutional ruling by the Supreme Court. Once the court corrects its error, states will be free to enforce their laws against abortion and will be able to prosecute everyone who violated them during the Roe Valley. Wade era.