What's it called when an inventor's invention backfires on them?

https://midwest.social/post/11935785

What's it called when an inventor's invention backfires on them? - midwest.social

Is there a name for this specific concept? Where somebody invents something (to do them good) but then that thing turns around and backfires on them?

List of inventors killed by their own invention - Wikipedia

Weird seeing Stockton Rush on there when most of the other inventors are pre-20th century.
I like how Thomas Andrews and Stockton Rush are right next to each other on that list. Kinda poetic.
Shame there aren’t pictures. A lot of these sound pretty cool.