Who is stopping you from licensing your code that way then?
some people are working on that, among others there is bruce perens: https://web.archive.org/web/20251206160538/https://perens.co... (sadly his site seems broken, the static files still work however: https://perens.com/static/DEVELOPMENT_LICENSE.txt )
FUTO is also exploring this space: https://sourcefirst.com/
It's not open source, because the definition of open source doesn't allow you to place any restrictions on who can use it or for what purpose. It's why licenses like "Don't use it for evil" or "Everyone except Anish Kapoor" aren't acceptable for a lot of Linux distros.
In practice your best bet is probably a license where everyone can use it, but which is incredibly hostile to use in a for-profit environment. Think AGPL, where you risk being forced to open source your entire unique-selling-point proprietary software stack.