You know... This is a very odd war.
There are three warring parties i.e. USA, Israel, Iran.
Logically those 3 should be paying huge cost usually spent in wars.. and while there was "loss"..but ironically
1) Iran got the demand for its oil from wider market, that too with hike ( lower cost to china due to lack of buyers, gone + overall hike) .
Except the nuclear program, Iran will find the loss of launchers and building bearable. They don't care about human loss either. Probably killed more iranians than US ever did.
2) USA has Trump who have spent almost 2 terms stomping on the green agenda and bringing fossil fuel industry back. They aren't even hiding it with most deals having a "buy my oil" section. Now more than ever, since EU will face sharper crunch otherwise ( damage to refinery) . So, there's two of the biggest industry (weapons n oil) of the USA making a windfall.
3) Israel really went crazy on hamas, like an absolute mission. It discarded the left leaning ME funded ecosystem, probably laid bare the hypocrisy of many at UN missions. So that's Hamas + narrative gang left worse than before. They got other groups too, basically dealing the axis a blow. Then they went to the original root of cause.. i.e. Iran. So, they bombarded their enemies, got USA on board, and Netanyahu personally saved himself from political oblivion.
While the nations who would want to not have anything to do with it ?
China: Not a security provider yet. Cant be beaten by USA in a direct fight but not beyond their borders. It's more about priority than might. But still, the most attractive tag " Can rival USA away from home" is gonna be hampered in near term. Don't mistake it with drastic reduction of its influence, but expect more cautionary approach from others.
India: The time, energy, manpower and resources spent to just maintain the tight rope walk amidst this. Pulled it off but not without hike in oil bill near end. Impact yet to be felt and seen. Global economy °↓ affects capital inflows too.
EU: Probably the worst hit among the list... Already reeling with Russia-Ukraine war. Had to spend way more effort to support Ukraine since US reduced it. Easiest source of oil and gas at risk. Now their alternative option under risk. And a US breathing down through neck to increase defense spending , buy US energy, refined through a third country? And it just so happens that they took in a huge number of people just a decade or two ago.
4) Russia: Well it's Russia

..
5) Australia : Not sure. But far enough and resources rich to handle it.
6) Rest of the world: Just.. not better off for sure.