The set $G$ consists of the points $(x,y)$ with integer coordinates such that $2\le|x|\le5$ and $2\le|y|\le5$. How many squares of side length at least $5$ have their four vertices in $G$?
$G$ consists of four $4\times4$ blocks of points, one in each quadrant. Two points of one block are at distance at most $3\sqrt2<5$, so the four vertices lie in four different blocks.
Label the vertices counterclockwise starting in the first quadrant: $(x,y)$, $(x-u,y+v)$, $(x-u-v,y+v-u)$, $(x-v,y-u)$ with $u>0$. Writing $w=u-7$, the conditions on $x$ say $x-2$ lies in $[0,3]$ shifted by each of $0$, $v$, $w$, $v+w$; this leaves $4-|v|-|w|$ values of $x$ when positive, and the same count holds for $y$.
So the number of squares with side vector $(-u,v)$ is $(4-r)^2$ with $r=|v|+|w|\le3$. There are $1,4,8,12$ pairs $(v,w)$ with $r=0,1,2,3$, giving $16+4\cdot9+8\cdot4+12\cdot1=96$ squares.
Exactly one of these has side shorter than $5$: $u=4$, $v=0$, the square with vertices $(\pm2,\pm2)$. So the answer is $96-1=\boxed{95}$.