Biden did not have much choice.. The ultimate deal was done by Trump and took years to put together. It was meant to end in December 2020 but Cheney and co. managed to delay it until now.
I suppose a functioning president could have reversed it but there is huge public support for ending this conflict and bringing the troops home.
Also I doubt Biden could have sold it to the left like Obama did for 8 years.
Trump boxed them in. Check mate!
Trump would have left a small force..if tbe Taliban blinked he would have kept air support and intelligence..like s korea..germany..japan..etc