Try and solve it in a more simply case first.
Suppose that $X$ takes values in a countable space and consider something like
$$
\mathbb P(X_n = x | X_{n-2} = x_{n-2}, X_{n-3} = x_{n-3}, ...).
$$
In your case the $X_{n-2}$ is replaced by the more general $X_k$. So right now we want to prove that only $X_{n-2}$ is relevant, we can do that by using the fact that $\mathbb P(A_2 | A_1) = \mathbb P(A_2 | X, A_1)\mathbb P(X | A_1) + \mathbb P(A_2 | X^c, A_1)\mathbb P(X^c | A_1)$ together with the Law of Total Probability as follows:
$$
\begin{align}
\mathbb P(X_n = x | X_{n-2} = x_{n-2}, ...)=&\sum_{\alpha\in\Omega} \mathbb P(X_n = x | X_{n-1} = \alpha, X_{n-2} = x_{n-2}, ...) \mathbb P(X_{n-1}=\alpha|X_{n-2}=\alpha, ...) + \mathbb P(X_n = x | X_{n-1} \neq \alpha, X_{n-2} = x_{n-2},...)\mathbb P(X_{n-1}\neq\alpha|X_{n-2}=x_{n-2},...)\\
=& \sum_{\alpha\in\Omega} \mathbb P(X_n = x | X_{n-1} = \alpha, X_{n-2} = x_{n-2}) \mathbb P(X_{n-1}=\alpha|X_{n-2}=\alpha) + \mathbb P(X_n = x | X_{n-1} \neq \alpha, X_{n-2} = x_{n-2})\mathbb P(X_{n-1}\neq\alpha|X_{n-2}=x_{n-2})\\
=&\mathbb P(X_n=x|X_{n-2}=x_{n-2})
\end{align}
$$
Do you see how you can generalise this?