I think that american pragmatism has the flaw that is focusing on means, not on outcomes.
In 20 century I saw US throwing money at problems, or trying to use technology to solve stuff. In Vietnam they wanted to build an electronic wall to stop Vietcong, in Central America, they payed officials to fight drug trafficking, while the countries were ruled by narcos.
They thought that if they throw technology and money they will have a base in Afghanistan. The technology gap is narrowing, China has night vision goggles, and can give to Taliban, Turkish drones are cheaper than an airplane.
The economy has its crisis and you can't finance a war forever, unless you extract wealth from it
If US administration would have consulted NATO allies in policies they could make better decisions.
But as Trump has said it, and Biden had done it: "America first" and US internal politics overshadow the external one.
Also the politics trump the truth, Bush needed uranium in Irak to invade it, Biden needed 300k afghan troops, to pull out.
A superpower hybris can destroy an alliance:
In 1961 after returning from a visit in Asia, the Romania's communist president Dej, found out that Soviet Union has placed nuclear missiles in Cuba.
Dej was upset because he could be drawn in a nuclear war that it didn't want, and soviets didn't tell him anything when he made his stop over to Moscow.
"They are nuts?" He said "Hruschev can drag us into a war. These issues must be addressed within Warsaw treaty, because all we are affected"
Since then he decided to split from Moscow, and approach US.
At an UN meeting an Romanian diplomat approached an US colleague and told him that Romania doesn't have nuclear missiles and US shouldn't attack it.
Since them Romania was more on US side than Russia's.
I expect that EU security cooperation to strengthen, and EU to follow a real politik approach to external policy.
The best approach in my opinion, was that after defeating Taliban's, US would lead an international conference on fate of Afghanistan, because many countries had help to fight Taliban, and even fewer wanted them in power. To the conference all the great powers would be present, and the neighbors.
Afghanistan would have been a neutral country as Switzerland, and any member of the agreement would be sanctioned if supported terrorism in Afghanistan.
The Afghanistan constitution and organisation should have mimic the Switzerland,another mountainous country, with different culture, but with some local characteristics. You cannot have a centralized state if you don't have a common culture