Most educated Iranians hate their government. The problem is that a revolution isn't easy when the government has all the guns, and the military & revolutionary guard remain loyal, and have no problem with shooting masses of innocent civilians to retain their power. Sanctions that worsen things for ordinary people really isn't going to change much in countries like this. It would be much more productive to try turn t…
The primary intent of sanctions isn't to foment revolution -- policymakers are well aware of the reality you outline. The actual intent of sanctions is to cause economic damage. In that respect this is an account of the sanctions working exactly as intended: they are making it harder for OP to work as a software developer, which makes it harder for the Iranian regime to benefit (directly or indirectly) from the effor…
A shower thought:
Wouldn't it make more sense if country A that considers sanctions against country B provided very "cushy" immigration laws for highly educated people from country B so that country A profits from these people's efforts while country B will suffer from a brain drain?