Japan and Germany had established cultures, institutions, histories and governmental bodies, along with productive citizens.
They were hijacked by evil. They are examples of a defeated enemy becoming trusted allies because they could be such examples.
There is nothing like this in Iraq, Afghanistan. Those follies were never designed to succeed.
I think our best bet for the Middle East is to set up networks of spies, and support strongmen who oppose Islamism but are not brutal toward the people they rule.
Japan did have an “established” culture (so does most of the Middle East, just not one you like), but that culture was hardly the liberal western culture people think of when they discuss even Nazi Germany. Japan was a quasi-theocracy, part-autocracy governed by the military through proxies; it had a feudal agricultural system; the emperor was believed to be a god and people could not even look him in they eye; and their “modern” industry was completely socialized. There was not a great deal of difference between Japan and Iran, except Iran doesn’t have any one person who can dictate to it in terms of religion the way Hirohito did.