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?
It would only be ironic if it were a lifesaving device, for instance, if the creator of the defibrillator went into cardiac arrest by an accidental misfiring of the defibrillator on him.
Irony requires a reasonable expectation of an opposite outcome.
A solar eclipse happening on a cloudy day is not ironic, it’s merely unfortunate. A song about things claiming to be ironic actually containing nothing that will qualify as ironic is ironic.