Let $X$ be a normal topological space. If $A \subset X$ is closed and $G_{\delta}$, then there exists a continuous function $f:X \to [0,1]$ such that $f(x) =0$ if $x \in A$ and $f(x) \neq 0$ if $x \notin A$.
I tried to use Urysohn's lemma and Tietze extension theorem, but I had no success.