If you paid $100 for a share after the damage was done, who should pay? You, or the shareholder who sold to you?
In a relatively short period, the answer becomes "pretty much the whole economy benefited financially". On the one hand, that's a good argument in favor of partially funding the healthcare system via a financial transaction tax, but is also less emotionally satisfying than what you're looking for.
If you want to make long-term clawbacks practical, you need to do something like force all dividends to be paid as long-duration low-seniority zero-coupon corporate bonds backed by a special-purpose legal entity that holds cash/treasuries to fully back the bonds and can only be raided via bankruptcy hearings. That way, the value is kept non-fungible and risk explicitly tracked.
Though, in practice, equity holders would probably sell those bonds immediately on the market, offloading the risk to third parties. You could make the bonds non-transferable except in case of inheritance, and ban short-selling/creating derivatives to prevent transferring the risk, but that's a lot of complication and overhead with little chance of improving corporate behavior.
Ultimately, long-term corporate responsibility is much harder to enforce than long-term personal responsibility. You need a licensed Professional Engineer (or something similar) overseeing safety testing of the chemicals putting their personal career on the line with their stamp of approval. "If everyone's responsible, nobody is responsible." You need a mechanism to make individuals both responsible and legally empowered.
Just track everyone who has ever owned a share and confiscate their whole property.
you might as well propose “we should just snap our fingers and wish really hard for utopia”