[guided]The goal is to express $G$ as a [countable](/page/Countable%20Set) intersection of open subsets of $X$.
**Why is this non-trivial?** Completeness is not a topological invariant — [Completeness is Not a Topological Invariant](/theorems/293) shows that $(0,1)$ and $\mathbb{R}$ are homeomorphic but only $\mathbb{R}$ is complete. So knowing that $G$ is "complete" does not directly yield a topological conclusion like being $G_\delta$. The argument must exploit the specific interplay between two metrics: the ambient metric $d$ (from $X$) and the complete metric $d_G$ (from the Polish structure on $G$).
Let $d_G$ be a complete metric on $G$ generating the subspace topology $\tau_d|_G$. Since both $d|_G$ and $d_G$ generate the same topology on $G$, the identity map $\operatorname{id}: (G, d|_G) \to (G, d_G)$ is continuous. For each $n \in \mathbb{N}$ and each $x \in G$, continuity of $\operatorname{id}$ at $x$ provides a radius $r_n(x) > 0$ such that
\begin{align*}
B_d(x, r_n(x)) \cap G \subset B_{d_G}(x, 1/n).
\end{align*}
We may assume $r_n(x) \le 1/n$ (replace $r_n(x)$ by $\min(r_n(x), 1/n)$ if needed — this only shrinks the ball, preserving the inclusion).
Define the open sets
\begin{align*}
V_n := \bigcup_{x \in G} B_d(x, r_n(x)).
\end{align*}
Each $V_n$ is open in $X$ (a union of $d$-open balls) and $G \subset V_n$ (since $x \in B_d(x, r_n(x))$).
We show $\bigcap_{n=1}^\infty V_n \subset G$, establishing $G = \bigcap_{n=1}^\infty V_n$. Take $y \in \bigcap_{n=1}^\infty V_n$. For each $n$, choose $x_n \in G$ with $y \in B_d(x_n, r_n(x_n))$, so $d(y, x_n) < r_n(x_n) \le 1/n$. Therefore $x_n \to y$ in $(X, d)$.
**Showing $(x_n)$ is $d_G$-Cauchy.** Fix $\varepsilon > 0$ and choose $N$ with $1/N < \varepsilon$. For $m > n \ge N$, we estimate $d(x_m, x_n) \le d(x_m, y) + d(y, x_n) < 1/m + 1/n$. For $m$ sufficiently large (specifically $m > n/(r_n(x_n) \cdot n - 1)$, but concretely: since $1/m + 1/n \to 1/n$ as $m \to \infty$ and $r_n(x_n) \le 1/n$, for large $m$ we have $d(x_m, x_n) < r_n(x_n)$). Then $x_m \in B_d(x_n, r_n(x_n)) \cap G \subset B_{d_G}(x_n, 1/n)$, so $d_G(x_m, x_n) < 1/n \le 1/N < \varepsilon$. This confirms $(x_n)$ is Cauchy in $(G, d_G)$.
Since $d_G$ is complete, $x_n \to z$ for some $z \in G$ in the $d_G$-metric. Since $d_G$ and $d|_G$ generate the same topology, $x_n \to z$ also in $(X, d)$. The ambient space $X$ is [metrizable](/page/Metrizable%20Space) (hence Hausdorff), so limits are unique: $y = z \in G$. This proves $\bigcap_{n=1}^\infty V_n \subset G$, so $G$ is $G_\delta$ in $X$.[/guided]