Well, about re-Luigi-ing an AI: these tropes literally exist: https://tvtropes.org/pmwiki/pmwiki.php/Main/HeelFaceTurn—when bad guy turns goodhttps://tvtropes.org/pmwiki/pmwiki.php/Main/Deprogram—when a bad character turns out to be a good character who was brainwashed.These are also the bread & butter tropes in the superhero comics
Well, about re-Luigi-ing an AI: these tropes literally exist: https://tvtropes.org/pmwiki/pmwiki.php/Main/HeelFaceTurn—when bad guy turns good
https://tvtropes.org/pmwiki/pmwiki.php/Main/Deprogram—when a bad character turns out to be a good character who was brainwashed.
These are also the bread & butter tropes in the superhero comics