It has been said many times before by many people, in a variety of ways and in a variety of languages: "open source" != "ethical".
For your software to be open source, you merely need to permit people to modify its source code and redistribute their modifications (forking).
That's it.
In practice, the biggest advocates for, and contributors to open source software are the giant tech companies that "principled" independent developers love to rail against. All OSI-approved software licenses permit the capital class to socialize production of useful tools and then privatize the value those tools create. All OSI-approved software licenses permit the use of the software for evil purposes.
Even the GPLv3--infamous for its virality--does not offer any real ethical restrictions.
If you license your software using an OSI-approved license, you are forfeiting your right to refuse the use of your software for evil.
If your ideal society is fully automated luxury gay space communism, and you envision your software being some tiny part of that society, then you should recognize that merely slapping an open source license onto your software is not sufficient and is definitely not a strong statement of your values. You should recognize that in our imperfect world full of evil and corruption, software licenses don't really matter much at all and you should not make them part of your identity.
With all that said, I want to get this out of the way: the open source model tends to permit independent developers to participate in software development without permission from the capitalists, even if most commits come from employees of the oligarchs. One might also say that the open source model also permits its users to participate in a culture of sharing, experimentation, and creativity. But proprietary software can absolutely do that as well. Just look at ZZT, Klik & Play, Discord, Minecraft, or any game-modding community. That culture, that spirit of rebellion, that freedom does not come from the license, or even the "open source model" in general, it comes from our human-interest in creativity,peace, equity, and justice.
So you use open source software? You develop open source software? Cool. You don't have the moral highground.
You do not have the moral highground, so do not judge others if they use or develop software that is not licensed with an an OSI license.