ENT I think was shot at 1080P at the very least and Lower Decks/Disco/Picard/etc are all probably 4K at least
That method wouldn't be possible for DS9 or Voyager as both of those shows were shot digitally at 480p. I remember hearing that there's been some community work that upscales DS9 to 1080p using neural networks, but haven't really been able to find anything concrete about that.
If we were to trust AI to do this, we'd need to build models specifically for this, with a way to give context to the rest of the set for the scene in question. From a technical perspective, I find the concept interesting, but from a practical sense, the amount of energy and time required to do this is almost a non-starter, and in doing this, we'd be going beyond the director's intent for the work at hand, which makes a transformative interpretation a degree or two removed from the intent of the director and production team.