I think you fail to understand the difference between a political party and the government. When the Democratic party took control of the US government, US bank accounts were not transferred to the Democratic party. The Taliban are the majority but not the only party forming the Afghan government. The functions of government continue. There are civil servants needing to be paid, schools and teachers to be paid for, health care, roads repaired, etc. I linked to the non-Taliban ex-minister of health pointing out the systems are exactly the same now as when he was the minister for health. Oil needs to be paid for for power generation.
This is a dollar account. Large numbers of developing world countries maintain dollar accounts because it provides some protection against fluctuations in exchange rates, things like oil need to be paid for in dollars.
See here for another reason to have the money in a non-Afghan bank account.
https://www.newyorker.com/magazine/2011/02/14/the-afghan-bank-heist
So, no the money should not be transferred to the Taliban that is just silly. The money should do the same thing as it did last year. Pay salaries, buy vaccines, buy oil etc. Control measures should be in place to try and ensure that the money is distributed properly and not siphoned off. But the reality is the taliban are widely regarded as less corrupt than their predecessors on government and as the reference above shows, last year US aid likely went in part to the Taliban - indirectly.
It is in our interests to engage with the Taliban to have a supervised financial system. We do not want the Afghan government to rely on taxing the opium trade, on informal financial systems and the Chinese and Russian governments.