Hijab in Islam

I have a question to ask. In Iran, women are forced to wear hijab and if they do not do so, the government will punish them.

And this is even the case for women of other religions. For example, atheist or Christian women are forced to wear hijab. My Mawla, is the issue of enforcement of hijab by the government correct? Is there a mandatory hijab in the state of justice, and whoever doesn’t wear a hijab, even if they are not Muslim, is punished? God bless you on earth. please pray for me.