Note that metric spaces are regular.
Show that if $B$ is the closure of an open subset of a separable regular space $H$ and that $A$ is a countable dense subset of $H$ then $A\cap B$ is a countable dense subset of $B$ in the topology inherited from $H$.
Consider two cases:
- $P$ is a point in the interior $B\,\backslash\, \beta\{B\}$ of $B$.
- $P$ is a point on the boundary $\beta\{B\}\subseteq H$
Case 1: Let $U$ be an open set in $B$ containing $P$ but no point of the boundary of $B$ in $H$. Then since $U$ is also an open set in $H$ it contains a point of $A$.
Case 2: Let $U$ be an open set in $H$ containing $P$. Then $U\cap(B\,\backslash\, \beta\{B\})$ is an open set in $H$ as well as an open set in $B$ so it contains a point of $A\cap B\subset A$.
Thus $B$ is separable.