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?

I think Frankensteinian would work based off second definition of Frankenstein from m-w dot com.

2: a monstrous creation especially : a work or agency that ruins its originator

Frankensteinian is the adjective form.

www.merriam-webster.com/dictionary/Frankenstein

Definition of FRANKENSTEIN

Definition of 'Frankenstein' by Merriam-Webster

This.