A subspace of a completely regular space is completely regular. A product of completely regular spaces is completely regular.
My attempt: Let $Y\subseteq X$. Let $\{y\}$ be a singleton set in $Y$. Since $X$ is $T_1$, $\{y\}$ is closed in $X$. By theorem 17.2, $\{y\}= Y\cap \{y\}$ is closed in $Y$. Hence $Y$ is $T_1$. Let $x\in Y$ and $B$ is closed in $Y$ such that $x\notin B$ (i.e. $\{x\} \cap B =\emptyset$). By theorem 17.2, $B=C\cap Y$; $C$ is closed in $X$. If $x\in C$, then $x\in Y\cap C=B$. So $x\notin C$. Since $X$ is completely regular, $\exists f: X\to [0,1]$ such that $f$ is continuous, $f(x)=1$ and $f(C)=\{0\}$. By theorem 18.2, $f|_{Y}:Y\to [0,1]$ is continuous. Since $B\subseteq C$, we have $f|_Y(B)=f(B)\subseteq f(C)=\{0\}$. Hence $\exists f|_Y:Y\to [0,1]$ such that $f|_Y$ is continuous, $f|_{Y}(x)=f(x)=1$ and $f|_Y (B)=\{0\}$. Is this proof better version of Munkres proof? Munkres used theorem 17.4, $(\overline{B})_Y =\overline{B}\cap Y$. Which is special case of theorem 17.2.
I think, there is a typo, $f_i(X_{\alpha_i}-U_{\alpha_i})$ instead of $f_i(X-U_{\alpha_i})$. Munkres’ claim that $\phi_i:X\to [0,1]$ defined by $\phi_i(x)=f_i(\pi_{\alpha_i}(x))$ vanishes outside $\pi_{\alpha_i}^{-1}(U_{\alpha_i})$, i.e. $\phi_i( \prod X_\alpha -\pi_{\alpha_i}^{-1}(U_{\alpha_i}))=\{0\}$. Question: (1) How to prove $\pi_{\alpha_i}(\prod X_\alpha- \pi_{\alpha_i}^{-1}(U_{\alpha_i}))=X_{\alpha_i} -\pi_{\alpha_i}( \pi_{\alpha_i}^{-1}(U_{\alpha_i}))$? I known $\supseteq$ inclusion holds in general. (2) Munkres’ claim that $f$ vanishes outside $\prod U_\alpha$, i.e. $f(\prod X_\alpha - \prod U_\alpha)=\{0\}$. By theorem 19.5, $(\prod X_\alpha) - (\prod U_\alpha) =\bigcup_{\alpha \in J} \pi_{\alpha}^{-1}(X_\alpha \setminus U_\alpha)$. So $\phi_1 (\prod X_\alpha - \prod U_\alpha) =\phi_1 (\bigcup_{\alpha \in J} \pi_{\alpha}^{-1}(X_\alpha \setminus U_\alpha))=$$\bigcup_{\alpha \in J}\phi_1 (\pi_\alpha^{-1} (X_\alpha \setminus U_\alpha))=\bigcup_{\alpha \in J}\phi_1 (\prod X_\alpha -\pi_{\alpha}^{-1}(U_\alpha))$. Note $\phi_1(\prod X_\alpha -\pi_{\alpha_1}^{-1}(U_{\alpha_1}))=\{0\}$. Now how to show $f(\prod X_\alpha -\prod U_\alpha)=\{0\}$? (3) Can this result holds in box topology? Here I showed arbitrary product of regular space is regular in box topology.
Edit: My claim in (1), $\pi_{\alpha_i}(\prod X_\alpha- \pi_{\alpha_i}^{-1}(U_{\alpha_i}))=X_{\alpha_i} -\pi_{\alpha_i}( \pi_{\alpha_i}^{-1}(U_{\alpha_i}))$, is incorrect. The correct way to reach desired result, $\phi_i( \prod X_\alpha -\pi_{\alpha_i}^{-1}(U_{\alpha_i}))=\{0\}$, is in answer by Mateo.