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?
Also not sure about a name, but in Greek mythology, there’s Daedalus. He built a massive maze, which was then used against him to imprison him & his son. Daedalus crafted wings out of feathers & beeswax to escape the island of Crete, but his son Icarus flew too close to the sun. Melting the wax, destroying the wings, and drowning in the sea.