Criterion 5 of the OSI's Open Source definition: [0]
> No Discrimination Against Persons or Groups
> The license must not discriminate against any person or group of persons.
To my knowledge this hasn't been tried in a licence before. FOSS licences generally state something about accepting no liability, and this seems to work pretty well even across jurisdictional differences. Presumably the legal situation changes if the software is sold, e.g. with enterprise Linux distributions, but of course FOSS is not typically distributed on that basis.
Regional licensing is pretty standard in general though. Especially for things under copywrite.
Or "No use if use implies X constraint". There are surely ways to word it that focus on how using it impacts the software, without having to mention a specific group.
The broader community puts a lot of stock in the licence-approval work done by the OSI, the FSF, and the Debian project.
One concrete consequence is that the Debian repositories won't accept your package. (Debian's requirements are much like those of the OSI. In practice, the 3 bodies almost always agree on whether a licence is acceptable.)
Less concretely, in terms of adoption and community-building it can be really bad news for a project to be almost truly Free and Open Source.
This might also deter governments from passing that category of bad laws because you're going to have a lot of grumpy companies and citizens if a new law tries to void a common version of the BSD license or GPL that makes NO WARRANTIES sina qua non.