It’s not the same as supporting pulling out of Afghanistan because Taliban is no threat to the US.
Russia is a global threat with its disinformation, blackmail and bribery campaigns that interfere with US and global politics. That makes it much more of a threat to the US than the Taliban.
(Still not treason though as the threat is not direct)
Edit: someone down thread says that selling votes to foreign governments is treason in the US. Sounds reasonable but I don’t know.