It used to be the USSR but that era is long gone and the US filled the void.
Not even China wants to go down that route.
Iran also failed to properly maintain and upgrade their military since the end of the war with Iraq. They have an internal political issue which is why they have the IRGC, which is a completely separate entity from the national military.
It was in the supreme leader's interest to keep the main military weak to ensure he couldn't be couped, but now that has left them extremely exposed.