$\newcommand{\R}{\mathbb{R}}$ I am going to demonstrate how I decomposed a closed set into pairwise disjoint closed intervals. (Here, we also take singletons as intervals).
Let $A$ be a closed subset of $\R$. Then, for all $x \in A$, there is the maximal closed interval $I \subseteq A$ containing $x$. We can form it by taking the union of all closed intervals in $A$ containing $x$. The union is closed: 1) it is trivially closed if it is a singleton; 2) Otherwise if one of its endpoints is assumed to be open, the point is a limit point of the interval, and we can add it to the interval, which contradicts to the claim that it is maximal.
Now, let $C$ be the collection of all such intervals. Then, $C$ is disjoint and $\bigcup C = A$. The countability of $C$ directly comes from the proposition, by which we can pair each element of $C$ with an adjacent open interval in the complement of $A$.
Is this correct?