Biden did not surrender to the Taliban, Trump worked out a peace agreement to allow us to pull our troops out of Afghanistan in May 2021. After August 2021, most Americans were out of Afghanistan, a few remained thereafter.
Check your timeline. Trump pulled most US troops out and freed 5000 prisoners by September 2020. Biden hadn't been elected.
The American expats who remained in Afghanistan had months to leave. The US state department has travel warnings for several years.