TNG had Picard give a speech to a person from the past about how the Federation was able to accomplish so much only because society stopped being oriented around the accumulation of wealth.
Discovery had a character praise Elon Musk for being a pioneer.
To be fair to Discovery I think that was written before Musk had completely (or at least publicly) gone off the deep end, but even at the time I thought it was extremely stupid to have a character praise an early 21st century oligarch in the same sentence that they mention actual inventors and engineers.