Bell 212s are in use by Canada Coast Guard,US police in Calif, Thai police and others. They were mostly at this point built in Canada.
So the Iranians flying them does not speak to any obsolescence.
How long since Iran acquired theirs, though, and were they purchased new? Or were they produced in Iran? — Iran manufactures their own copies of the Bell 212 and Bell helicopters. These are known as the Shabaviz 2-75 and the Shabaviz 206 respectively. I’d ride one... at gunpoint.
(Years ago I did engineering lab work with Iranian students. THAT was “enlightening”. Ya’ couldn’t beat those guys at doing math in their heads, though.)