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.