Definitions:
Let $X$ denote a topological space throughout.
If all singleton subsets of $X$ are closed, then we call $X$ Fréchet. If, given any closed subset $C \subset X$ and any point $x \in X - C$, there exist disjoint neighbourhoods of $x$ and $C$, then we call $X$ quasiregular. If $X$ is both Fréchet and quasiregular, then we call $X$ regular. (To--hopefully--avoid confusion, I forgo the use of the $T_n$ notation for separation properties entirely, and use the conventions of Clark's notes on general topology in this PDF.
A collection $\mathcal{A}$ of subsets of $X$ is said to be locally finite if, for every point $x \in X$, there exists some neighbourhood of $x$ which intersects only finitely-many elements of $\mathcal{A}$. If we can write a collection $\mathcal{B}$ of subsets of $X$ as a countable union $\bigcup_{n \in \mathbb{N}} \mathcal{A}_n$, where each $\mathcal{A}_n$ is locally finite, then the collection $\mathcal{B}$ is said to be $\sigma$-locally finite.
My question:
I am confused about the proof of one direction of the Nagata-Smirnov metrisation theorem given as Lemma 4.20 in Kelley, which for completeness I attach to this post as an image. In the above terminology, the statement of this lemma is
A regular space whose topology is generated by a $\sigma$-locally finite basis is metrisable.
As I understand it, his approach is to make use of the $\sigma$-locally finite basis to define a countable collection $\{ d_{(n,m)} \}_{(n,m) \in \mathbb{N}^2}$ of continuous functions $X \to \mathbb{R}$, and then show that this collection distinguishes points from closed subsets of $X$. This allows us to deduce that the evaluation map $x \mapsto \left( d_{(n,m)}(x) \right)_{(n,m) \in \mathbb{N}^2}$ embeds $X$ as a subspace of the metrisable space $\prod_{(n,m) \in \mathbb{N}^2} \mathbb{R}$, which in turn tells us that $X$ is itself metrisable. (Morally, this seems basically identical to the standard proof of the same direction of Urysohn's metrisation theorem, modulo the technical details of defining the countable collection of functions $X \to \mathbb{R}$ in the first place.)
Now, there exist metrisable spaces which fail to be separable (or, equivalently, fail to be second countable); for instance, the discrete topology on any uncountable underlying set. What I don't understand is why Lemma 4.20 does not imply that all metrisable spaces are separable when we combine it with the reverse implication.
Explicitly, if we assume that the topology of any metrisable space is generated by some $\sigma$-locally finite basis, then my understanding of Lemma 4.20 tells us that we can embed such spaces in the countable product $\prod_{n \in \mathbb{N}} \mathbb{R}$. As a product of countably-many second countable spaces, $\prod_{n \in \mathbb{N}} \mathbb{R}$ is second countable; since second countability is inherited by subspaces, this seems to imply the (false) result that all metrisable spaces are second countable.
Where is my understanding going wrong?
$T_1$, I use "Fréchet"." />