Oh that’s right, they’re often comically overtly racist caricatures.
In any event Star Fleet specifically is a dystopian hell has been analyzed to death. And the genesis of DS9 is completely straightforward. You can use the idealized yet completely ridiculous portrayal of Star Fleet for a movie or two, some short stories. Stretching it out to 7 seasons was admirable (but even they had to make some concessions with story arcs post Roddenberry). Let’s not forget TOS only needed to last 3 seasons and the Roddenberry era TNG is pretty crappy overall at least outside the diehard fandom.