But Iran is a good country for living, I did not find any restriction on people who follow other religions like Judaism, Christinity, Islam and even womens are free to work, they can go to universities or work, the women can even drive the vhicles, women can perform any activity freely , They have co-education. It is a civilized nation comparing to other regions while victims like Malala can be found in Pakistan, In Saudi Arabia, people are beheaded, they are treated badly. King Salman is a man who supports terrorism. The Saudi government has repeatedly funded terrorists whose documents are available on the Internet. I don't think there is Sharia law in Iran because there is nothing in it that forces a person to be forced into another religion or deprives people of their freedom. Can something similar be expected in Afghanistan? Hazaras are not safe in Afghanistan or Pakistan either, with many such reports appearing in the BBC and the New York Times. Even before the US war on Afghanistan, the situation in Afghanistan was the worst, the people there were not safe. However Talibans are now making promises so a chance should be given to them, it is possible that they have changed.
If sharia law is the religious law of Islam then why there is no such law exists in other muslim countries, Even Iran has no such kind of law. They have law but it is made by them. There is only restriction that people who are not couples cannot touch each other as it might be a type of harresment. I don't know how but there is their own ideology. Even that kind of law does not exist in Pakistan which is producing the Talibans.
Sharia law is used in other countries, yes. Including Iran, yes. As I say though, it can be intrepreted and applied in different ways.
Here's an example crime and punishment in Iran:
Theft (sirqhat-e-haddi): 1st offense, amputation of the 4 right fingers; 2nd offense, amputation of the 5 left toes; 3rd offense, life imprisonment; 4th offense, death penalty.
https://en.wikipedia.org/wiki/Judicial_system_of_the_Islamic_Republic_of_Iran#Hadd_crimesAs for which countries use Sharia law, this is as good a link as any:
https://en.wikipedia.org/wiki/Application_of_Sharia_by_countryIran
Article 167 of the constitution states that all judicial rulings must be based upon "authoritative Islamic sources and authentic fatwa". Book 2 of the Islamic Penal Code of Iran is entirely devoted to hudud punishments. Iranian application of sharia has been seen by scholars as highly flexible and directly contradicting traditional interpretations of the sharia.
Pakistan
The Constitution of Pakistan acknowledges God as the sole sovereign of the universe and the Parliament as a delegate. The Constitution of Pakistan requires that all laws conform with Islam and not conflict with the Quran or Sunnah. The Council of Islamic Ideology reviewed the British era legislation and found most of it did not conflict with Sharia. Sharia was declared the Supreme Law of Pakistan in the 1991 Enforcement of Shariat Act. Section 4 stipulates that courts select an interpretation of law consistent with Islamic jurisprudence and principles.
Saudi Arabia
Saudi law is based entirely on sharia. No codified personal status law exists, which means that judges in courts rule based on their own interpretations of sharia. See Legal system of Saudi Arabia. However as of 2021, Saudi Arabia has new laws of codified which include The Personal Status Law, the Civil Transactions Law, the Penal Code for Discretionary Sanctions, and the Law of Evidence implemented by reformist crown prince Mohammed Bin Salman.