Exercise $8.4.G$ of Vakil's algebraic geometry notes asks us to prove:
If a locally closed embedding $\pi:X\rightarrow Y$ of locally Noetherian schemes is a regular embedding at $p$, then it is a regular embedding in some neighborhood of $p$ in $X$.
Where being a regular embedding at $p$ means that the stalk of the ideal sheaf $(I_{X/Y})_p$ is generated by a regular sequence for $\mathcal{O}_{Y,p}$.
There is a hint, which roughly says that we can reduce to the affine case with $\pi$ a closed immersion, say $Y = \operatorname{Spec}(B)$ and $X = \operatorname{Spec}(B/I)$. Moreover if $I_p$ is generated by the image of elements of $B$, $x_1,\dots,x_r$, then there is an open neighbourhood about $p$ where $I_q$ is also generated by the images of $(x_1,\dots, x_r)$ for all $q$ in this neighbourhood. I understood all this, but I don't see why the images of the $x_i$ should form a regular sequence at each stalk. I get that if they form a regular sequence for $B$, then they form a regular sequence at the stalk of any point in the open set in $X$, but I'm not sure if this is helpful.