The solution of the Pell equation:
$$ X^2-2y^2 = -1 \tag{1}$$
are given by $X=1,7,41,239,1393,8119,\ldots $ (OEIS A002315), hence we are looking for integers of the form $2x^2-1$ among terms of the sequence given by:
$$ X_1 = 1,\qquad X_2 = 7,\qquad X_{n+2}=6 X_{n+1}-X_n \tag{2}$$
or:
$$\begin{eqnarray*} X_n = \frac{(1+\sqrt{2})^{2n-1}+(1-\sqrt{2})^{2n-1}}{2}&=&\sum_{j=0}^{2n-2}(-1)^j(1+\sqrt{2})^{2n-2-j}(1-\sqrt{2})^{j}\\&=&\sum_{k=0}^{n}\binom{2n-1}{2k-1}2^{n-k}. \tag{3}\end{eqnarray*}$$
It is easy to check that $n=1,2$ give two solutions; not obvious that $n=1,2$ give the only solutions; probably the property $ X_n^2-X_{n-1}X_{n+1}=8$ can be exploited in some tricky way.