Although I'd argue a non-negligible amount of socialist inspiration exists within the current Islamic doctrine of Iran (largely due to the writings of Ali Shariati) its very far from the truth to say they are "borderline socialist". The Iranian economy and state is not dominated by the proletariat or an organization a ting solely on behalf of the proletariat. The Iranian capitlist class not only exists, like in China, but actively influences or commands state power, which makes it chiefly different from the Chinese capitlist class.
Socialist ideas exist within the Islamic Revolutionary theory, but they aren't all encompassing and the factions within the revolution differ between neoliberals and arguably socialist, a gap too wide to make such a sweeping statement.
This doesn't mention the fact that the Iranian economy continues to be gutted in favor of the bourgeoisie at the expense of Iranian workers, rather than continously development of the productive forces. The development of productive forces mainly comes from the public sector and IRGC, but they have to contend with the bourgeois Iranian parliament and presidency.
There is an argument that a form of "Islamic socialism" could be built within Iran, but frankly I don't see that happening as long as the Iranian oligarchs receive no punitive measures, and the government doesn't implement systems that stop the Iranian bourgeoisie from hijacking state power. Iran is frankly a strange case, and difficult to analyze in my opinion. It's clearly a hybrid state of sorts, sharing power between an anti-colonial nationalist faction in the military and state security sector, and a diverse national bourgeoisie which projects power through the Civil institutions such as the parliament, presidency, and distribution of goods/services.
However I'm confident in saying they are not "borderline socialist".