Wordpress and Nextcloud come to mind. Arguably Red Hat as well. A web search turns up more companies that worked out how to do this, although I've not heard of most of them, so I don't know.
In my own ventures, I don't try. My commercial software is sold under a proprietary license, not open source, although I do provide the source code with the license. My open source offerings are not intended to make money.
Wordpress and Nextcloud come to mind. Arguably Red Hat as well. A web search turns up more companies that worked out how to do this, although I've not heard of most of them, so I don't know.
In my own ventures, I don't try. My commercial software is sold under a proprietary license, not open source, although I do provide the source code with the license. My open source offerings are not intended to make money.