Proof (preimage theorem)
Let $x \in f\inv(y)$. We want a local parametrisation of $f\inv(y)$ around $x$. Since $y$ is a regular value, $\d f_x: T_x X \to T_y Y$ is surjective.
Since $\ker \d f_x \subseteq T_x X$ has dimension $\dim Y - \dim X =: q$, find some linear surjection $T: \R^N \to \R^q$ with $\ker T \cap \ker \d f_x = \set{0}$. Define $$ \begin{align*} F = f \times T|_X: \quad X &\to Y \times \R^q \\ x &\mapsto (f(x), T(x)), \end{align*} $$ which is smooth and has derivative $$ \begin{align*} \d F_x = \d f_x \times \d T|_{T_xX} = \d f_x \times T|_{T_x X}: T_xX \to T_y Y \times \R^q. \end{align*} $$ $\d F_x$ is an isomorphism since $\ker \d F_x = \ker \d f_x \cap \ker T|_{T_x X} = \set{0}$ and $\dim T_x X = \dim (T_y Y \times \R^q)$.
The inverse function theorem then tells us $F$ is a local diffeomorphism, i.e. there exists $U\subseteq X$ open neighbourhood of $x$ such that $F|_U: U \to F(U)$ is a diffeomorphism. By restricting $U$ we can WLOG assume $F(U) = f(U) \times T(U)$.
Then define $$ \begin{align*} ψ := (F|_U)\inv|_{\set{y} \times T(U)}: \quad \set{y} \times T(U) \isom T(U) \to U \cap f\inv(y) \subset X. \end{align*} $$ This gives a local parametrisation of $f\inv(y)$ near $x$: $T(U)$ is an open subset of $\R^q$, and $ψ$ is a diffeomorphism as it is a restriction of a diffeomorphism.
Finally $$ \begin{align*} T_{x} f\inv(y) = \d ψ_{ψ\inv(x)}(\R^q) = (\d F_x)\inv(\set{0}\times \R^q) = \ker \d f_x. \end{align*} $$