Been thinking about this today:
A deus ex machina ( /ˈdeɪ.əs ɛks ˈmɑːkiːnə/ or /ˈdiːəs ɛks ˈmækɨnə/
day-əs eks mah-kee-nə; Latin: “god out of the machine”; plural: dei
ex machina) is a plot device whereby a seemingly unsolvable problem is
suddenly and abruptly solved with the contrived and unexpected
intervention of some new event, character, ability, or object.