Let $\{X_i\}_{i \in I}$ be a family of non empty topological spaces and consider $X=\prod_{i \in I}X_i$. Show that if $X$ is regular, then $X_i$ is regular for every $i\in I$
Given $i \in I$ take $x_i \in X_{i}$ and $A \subseteq X_i$ a closed subset that doesn't contain $x_{i}$.
Consider $(y_j) \in X$ where $y_j = x_i$ if $j =i$ and $y_j$ is any element of $X_j$ if $j \neq i$.
Take $\prod A_i \subseteq X$ given by $A_j = \{y_j\}$ if $j \neq i$ and $A_j = A$ if $j=i$.
Since $X$ is regular by hipothesys, there exist open disjoint subsets $U, V \subseteq X$ such that $(y_j) \in U$, $\prod A_i \subseteq V$. Now since $y_j \in \pi_{j}(U)\cap\pi_{j}(V)$ for every $j \neq i$ we have that $\pi_{i}(U) \cap \pi_{i}(V) = \emptyset$.
However, nothing assures me that $\pi_{i}(V)$ is open in $X_i$ and if I take basic element of $X$ contained in $V$, nothing assures me that the $i$-coordinate of the basic element contains $A$ entirely.
So I took, a basic element $\prod U_j \subseteq U$ that contains $(y_j)$ and necessairily, $U_i \neq X_i$, since $U_i \subseteq \pi_{i}(U)$ and $\pi_{i}(U) \cap \pi_{i}(V) = \emptyset$.
So my idea is to take my open subset containing $A$ in $X_i$ as $\overline{U_i}^c$ suggested by the fact that $U_i \cap A = \emptyset$ but I wasn't able to prove that $\overline{U_i}\cap A =\emptyset$ (which in fact, im not sure if it is even true)
Am I on the correct track? Any other hint?
The system is unhappy with the number of comments we have been adding so I will add a (hopefully final) comment as an answer.
It seems that we have reduced the problem of whether or not your $\pi_{i}(U)$ and $\pi_{i}(V)$ are the requisite open sets to the question of whether or not every nonempty open set in $\prod X_{j}$ is of the form $\prod U_{j}$ where $U_{j}=X_{j}$ for all but finitely many $j$. These are certainly basic open sets.
Then let $O\subseteq X=\prod X_{j}$ be an open set. Then $O=\bigcup_{\alpha\in J} B_{\alpha}$ where the $B_{\alpha}$ are any basic open sets. We claim that $O$ itself is a basic open set. To see this we note that if $B_{\alpha}$ and $B_{\beta}$ are given with $\alpha\neq\beta$ then there is a finite set $I_{\alpha}=\{j_{\alpha_{1}},\ldots, j_{\alpha_{n}}\}$ such that $\pi_{j_{\alpha_{k}}}(U)\neq X_{j_{\alpha_{k}}}$ (please forgive this hurricane of indices). Likewise there is a finite set $I_{\beta}=\{j_{\beta_{1}},\ldots, j_{\beta_{m}}\}$ with similar characteristics. Then we consider $B_{\alpha}\cup B_{\beta}$. If $I_{\alpha}\cap I_{\beta}=\emptyset$ then $B_{\alpha}\cup B_{\beta}=X$. Otherwise $B_{\alpha}\cup B_{\beta}$ is a basic open set $B_{\gamma}$ where $I_{\gamma}=I_{\alpha}\cap I_{\beta}$.
In general, if $\pi_{j}(O)\neq X_{j}$ for infinitely $j$ then define $J_{O}$ to be the set of indices $j$ for which $\pi_{j}(O)\neq X_{j}$. We then have that, for all $\alpha\in J$, $\pi_{j}(B_{\alpha})\neq X_{j}$ for all $j\in J_{O}$. However, this implies that infinitely components of $B_{\alpha}$ are not equal to an $X_{j}$, which is a contradiction. Therefore $O$ must be a basic open set. In particular $O$ is the basic open set whose $i^{th}$ component is $\bigcup_{\alpha\in J}\pi_{j}(B_{\alpha})$.
${\bf Note:}$ This was not terribly rigorous. If you wanted to make it so you could use transfinite induction on the basic open sets that make up the open set $O$.