You are talking about America and it's proxies been kicked out of the middle east. But this same proxies is what America is fighting against, which they are even accusing Iran of sponsoring these terrorists organizations, in the middle east which has been even attacking Israel. Terrorist groups such as Hezbollah and Hamas militants has continued to attack Israel with the support of Iran this has been the position of the United States and their allies.
The US regime first redefined the term "terrorist groups" then categorized any group that stood against their aggression under that fake definition. They even categorize Iran's military as a terrorist group after Iran crushed the the US-ISIS coalition in Syria during WW4.
Since you named some, lets see what are these groups. Hezbollah and Hamas:
Roughly 80 years ago, Zionists from various countries in the world came together to invade Palestine and start the occupation of this country. Like any invading force that wants to colonize a country, they needed to ethnically cleanse the "natives". That is when the genocide of Palestinians began and still continues today.
Obviously when an invading force starts slaughtering the people, some of those people start forming a
Resistance to fight against the invaders. We've seen this in all invasions in the past, like during WW2 when Nazis invaded France. That is what HAMAS is, one of the many resistance groups or freedom fighters who are fighting the genocidal invaders aka Zionists.
After the Zionists established their colony inside Palestine and started the genocide of Palestinian people, they started thinking about expanding their colony. One of the directions they expanded toward was north toward Lebanon. Back in 1980's they invaded Lebanon and occupied half of it reaching the capital, they also started committing genocide there by mass murdering people. For example in one massacre in Sabra and Shatila they slaughtered over 6000 men, women and children.
Again, obviously when an invading force starts slaughtering people, some of those people pick up arms to fight the murderers, punish them and push them back. That is when the Lebanese
Resistance began in around 1982. Slowly this resistance gained structure and got more organized and was finally named Hezbollah. A resistance group that first kicked out the invaders and has been protecting its home against foreign invaders aka Zionists ever since its establishment.
Obviously the invaders and the genocidal Zionists didn't like it when they faced resistance and failed to expand the territories they were occupying. Therefore they ordered the US regime to categorize those who stood against them as "terrorists" so that each time the Zionist regime carried out a terrorist attack against civilians in Gaza, Lebanon, etc. they could sell it to the uneducated public as "fighting terrorism".
Iran obviously supports the Resistance and anybody who fights the true terrorists.
You can see the sides during WW4 (~2000 to ~2019) very clearly: Iran and Hezbollah were on one side while US + Israel + al-Qaeda + ISIS were on the other side.
Even today that distinction is very clear. For example US regime
received the head of al-Qaeda in the White House a while ago and
openly too. Or the fact that recently The Pedophile POTUS announced that after Zionists sustained heavy casualties and failed to hold on to the occupied territories in Lebanon once again, they should pull back but hand over the terrorist attacks to the other US proxy namely al-Qaeda.
They are no longer shy about supporting terrorism either. For example United States Director of National Intelligence, Tulsi Gabbard confessed to the congress that US regime supported, armed, trained al-Qaeda terrorists. Same with Joe Kent who made similar confessions, he was the director of US regime's National Terrorist Groups Management Center.
There are countless other confessions and solid evidence supporting this as well. Like declassified documents, leaked documents, the Timber Sycamore files, the statements by terrorist handlers like Robert Ford (U.S. regime's Ambassador to Syria) who was tasked to rebrand al-Qaeda and its new head al-Jolani,... and a lot more. The list is very long.
That is what I said before: the US regime and its terrorist proxies (ie. ISIS, Israel, al-Qaeda, etc.) must leave West Asia for real peace to be established in the world and global markets so that we can see global economic and energy stability.