I would not suggest to anyone, unless it is the only possible option.
First thing, I think it would be hard for a western to live in Iran, considering the human rights violations of the regime, not having freedom of speech, restraints on women, homosexuals and alcohol and many others. Before seriously considering such a move, I would try to contact some westerners in the institution you're considering and asking about their experience.
Second thing, most of the universities in Iran are public and as you're considering a job, rather than just a research visit or a conference visit, it means you're being employed by the Islamic republic. This is a big difference.
This sole thing, may get interpreted as you being supportive of the regime and its actions, and can jeopardize future positions in the academia (US/UK/Israel for sure, and probably some other allies like Canada or Australia), and may lead to some visa issues/questioning in the future. It is true that there are many Iranians in the west, and Sharif University is a great university for undergraduate studies whose graduates continue moving to get education in the best US institutions, but those are Iranians, not people who had a lot of options where to do undergraduate studies and most of them fled the country without looking back the minute they can.
It might also disqualify you in the future to work in some work that might require clearance (if you consider doing state-department/security related stuff in the future, as you have extensive language knowledge).
You've mentioned that you studied Indo-Iranian languages, so why not look at some better places? India? Azerbaijan?
If you know some Arabic, there are all those branches of fancy US institutes in the Emirates and Saudi-Arabia? Maybe those have departments about Indo-Iranian languages as well? (my first point applies there as well, but my second point is not very relevant).
P.S. I'm pretty sure that even in Europe, the general consensus about Iran would be mostly neutral to (some) negative, most definitely I would not describe it as positive.