we have never been attacked by foreign terrorists(in any meaningful way), we have worked with them to make false flags.
First, that parenthetical is a lot of weaselling. Any individual act of terror could never impose meaningful material costs at a national scale. Terrorism works via terror, not fatality, it imposes intolerable secondary psychic costs on a polity by using the media process of sophisticated societies against itself.
Second, regarding the false flags, that may be so. It's debatable! You'd have to be very unreasonable to believe absolutely a conspiratorial theory that has tenuous proof and largely circumstantial reasoning about distant people's intentions, desires, and mentalities. Can you really know what happened in the White House? I can't say I can. No matter what you think though, the culpability of the Bush 2 admin in 9/11 is highly debatable. The closest we have to a smoking gun is the Mineta Colloquy but that's not doing much to prove true guilt by any party.
What is not debatable is that the US government has dedicated insane amounts of money and effort to identifying, tracking, expropriating, and killing people of a certain political persuasion, across the world, with unlimited license to declare them true outlaws, global ultraniggers. You may point out something like the mysterious disapperance of Abu-Bakr Al-Baghdadi from a US military prison in Iraq some while before establishing ISIS. I think they fucked up and miscalculated the risks. The government is a large and human-filled machine, surely the government has rival factions with different strategic aims who see some opportunities with some Islamists and some who see some opportunities with ethnonationalist militias and the like. They have to negotiate, in Iraq at least, with retarded fucking Iraqis to stay there and achieve their missions. I think these don't point to active collusion, but more of a game that has lots of collateral damage built in to its basic cost model.
Diplomacy and its twin, espionage, is a space outside of conventional morality. Foreign policy requires one to see into the peculiar and malformed morality of a state, and it is hard to assume as a mental position. The US has worked with and armed and trained groups that have turned on America, but the Americans are not going into foreign countries looking for opportunities to attack America. They're trying to tame a situation and losing control, as states always do.