You're kidding, right? In almost every single engagement against US/NATO forces, the Taliban lose. Best case for them they run away. There's only been a VERY few instances where the Taliban have successfully taken a position from the US, and that was only in cases where it was like 5 US guys stranded on a mountaintop surrounded by 200 insurgents.
The Taliban knew this, their goal wasn't to win the military battle in Afghanistan, it was to win the PR battle in the US. "Americans are too soft, they'll give up once we make them have enough bad takes on MSNBC to make them feel bad while eating their burgers and cry on their TikTok". This was Japan's strategy in WWII, and they were a far stronger opponent. They failed because we weren't crybabies. I guess now we are.