In this case, “Iran war” is a bit misleading because the conflict is largely a missile and proxy confrontation affecting several territories (Iran, Israel, and parts of the Gulf), not just one battlefield.
Personally, I find it clearer to name conflicts after the primary actors involved. For example:
Russia–Ukraine war U.S. & Israel–Iran war
That makes the participants explicit instead of implicitly framing the war around a single country or location.
Just observing, not saying it's a good or bad linguistic practice
Another way to name wars, when they aren't happening to you, is based on where they happen. The war is happening in and around Iran. It's very unlikely that Iran will manage to bring the war to America. You could also call it the Gulf of Persia war.
You can also name them propagandistically, as in the "2023 Israel-Hamas war". Thankfully this hasn't happened in this case.
I wonder what they call it in Iran?