Iran could do that...
But it would genuinely be a very stupid response..
Right now they are only dealing with the military and intelligence capabilities of Israel..
Launch an attack on US soil (or US interests abroad) either directly or through a proxy, and US F35's, F22's, and B2's will be flying over Iranian airspace within 48 hours..
Unlike Israel, the US has a significant amount of military power present within close striking distance of Iran (Naval forces in the Persian Gulf).. Israel is having to fly over Jordanian and Iraqi airspace to reach Iran.. The US doesn't have that limitation.. We have even more capable assets that are substantially closer to Tehran..
If Iran didn't learn anything else from the US invasion of Iraq.. it learned the US can roll over the entire country with heavy armor and troops in a matter of only a few days once air superiority is obtained.. while they could continue to fight an insurgent/guerilla war for a pretty long period of time, they would quite literally lose the entire country and most of the mullahs and generals in power would be dead in a matter of days.. their energy infrastructure would be completely gone, their economy would be completely gone, etc..
Iraq didn't stand a chance.. and they were a better equipped and better trained military than Iran.. and the US didn't have 20+ years of active war fighting experience in its recent history..
Iran is largely using equipment older than what the Russians are left using in Ukraine right now, and has no means of resupply (the Russians, NORKS, Chinese, etc are all dumping what they can spare into Russia/Ukraine..
Theyre very good at funding and supporting proxy organizations that rely on terror tactics...
Theyre not going to be so great at fighting in a direct conflict with a western super power..
And while I am sure they'd love to see Islam defeat the western devils, etc..etc.. Im pretty convinced that the Ayotollahs prioritize their own survival over that..