I know this is a very common question but there is something I seem to be misunderstanding. Let $S_n$ be a simple random walk in $\Bbb Z^2$ starting at $0$. I want to count the number of paths of length $2n$ that return to the origin. In $\Bbb Z$, this number is $\binom{2n}{n}$. In $\Bbb Z^2$, such a path must make $k$ steps north, $k$ steps south, $n-k$ steps east, $n-k$ steps west. For me, it chooses $k$ steps north among the $2n$ steps, then it chooses $n-k$ east among the $2n-2k$ steps left. So I got $$\sum_{k=0}^n \binom{2n}{k}\binom{2n-2k}{n-k} \text{ paths}$$
However, even after developing it, it is not the expected answer that is $\binom{2n}{n}^2$ paths. Is there something wrong in my argument ? Also, I really want to count it as a sum like I did but I don't know if the reasoning is right. In other words, in this answer https://math.stackexchange.com/a/4381310/870351 why is there a factor $\binom{2n}{2k}$ that I missed ?