Here's a more direct proof using the very basic definitions of first-countability and sequential continuity.
$\textbf{Definition 1 (first-countable space):}$ a topological space
$(X, \mathcal{T}_X)$ is first-countable if:
$\forall x \in X$, there exists a countable sequence of (open) neighborhoods $N_1, N_2,...$ containing $x$ such that for all neighborhood $M$ of $x$ (i.e. $x \in M$), we have $N_i \subseteq M$ for some $i \in \mathbb{N}$.
The sequence $\{N_i\}_{i=1}^\infty$ is called the local basis of $x$.
Reminder 1: a trivial fact that we assume from now on is that the local basis consists of open sets.
Next we recall the definition of sequential continuity and (general) continuity:
$\textbf{Definition 2 (sequential continuity):}$ a function $f: X \to Y$ that maps between topological spaces $(X, \mathcal{T}_X)$ and $(Y, \mathcal{T}_Y)$ is sequentially continuous at $x \in X$ if
$$\{x_n\}_{n = 1}^\infty \to x \quad \Longrightarrow \: \{f(x_n)\}_{n = 1}^\infty \to f(x)$$
where the LHS is a convergence in $(X, \mathcal{T}_X)$, whereas RHS in $(Y, \mathcal{T}_Y)$.
This is also denoted as $\lim_{n \to \infty} f(x_n) = f(\lim_{n \to \infty}x_n) = f(x)$.
Reminder 2: the concept of convergence for general topological space (e.g. $(X, \mathcal{T}_X)$) is that for every open set $U \in \mathcal{T}_X$ that contains $x$, $\exists N > 0$ that $\forall n \geq N, x_n \in U$.
$\textbf{Definition 3 (general continuity):}$ use the same notations as above. We say that $f$ is (generally) continuous if for every open set $U \in \mathcal{T}_Y$, we have the preimage $f^{-1}(U) = \{x \in X: f(x) \in U\} \in \mathcal{T}_X$ an open set in $X$.
Now we are finally ready to ⛵ embark on the proof~
Proof sketch:
We want to take some $U \in \mathcal{T}_Y$ and show that $V := f^{-1}(U) \in \mathcal{T}_X$. To achieve this, we consider any $y \in U$ and want to find some open neighborhood $V_y$ such that $f^{-1}(y) \subseteq V_y \subseteq V$. Showing this for any $y$ then gives us an argument to show that $V$ is open.
Step 1:
Using the notation above, we assume $U \neq \emptyset$ and pick $y \in U$. Then take $x \in f^{-1}(y)$ -- again the case when $f^{-1}(y) = \emptyset$ is trivial.
Since $(X, \mathcal{T}_X)$ is first-countable, $x$ admits a local basis $\{N^{(x)}_n\}_{n=1}^\infty$. We now claim that there exists some $0 < m_x \in \mathbb{N}$ such that
$$
x \in \bigcap_{i=1}^{m_x} N^{(x)}_i \subseteq V := f^{-1}(U)
$$
i.e. a finite intersection of the local basis of $x$ lies within $V$. This claim is proved using contradiction in the next step.
Step 2:
By contradiction, we have that $\forall n \in \mathbb{N} > 0$, there exists some $x_n$ satisfying
$$
x_n \in \bigcap_{i=1}^{n} N^{(x)}_i \quad \text{and} \quad x_n \notin V
$$
Note that the first condition is well-defined since at least $x$ itself lies in any such intersections.
Also please verify yourself that such construction for $x_n$ gives us a convergent sequence $\{x_n\}_{n=1}^\infty \to x$.
Hint: it's easy to see that for any $N^{(x)}_k$ in the local basis, we have $x_n \in N^{(x)}_k$ whenever $n \geq k$. Try to generalize this to any open set $\mathcal{O} \in \mathcal{T}_X$.
Now, by the sequential continuity of $f$, we have $\{f(x_n)\}_{n=1}^\infty \to f(x) = y$.
⚠️Contradiction occurs since by construction, $\forall n$, we have $x_n \notin f^{-1}(U)$, so $f(x_n) \notin U \ni y$.
We thus prove the claim in Step 1.
Step 3:
Let's reflect on what we have done so far: for any $y \in U$ and $x \in f^{-1}(y)$, we show that
$$
x \in M^{(x)} := \bigcap_{i=1}^{m_x} N^{(x)}_i \subseteq V := f^{-1}(U)
$$
where each $M^{(x)}$ is a finite intersection of open sets, thus open. Taking the union for all $x \in V$:
$$
V \subseteq \bigcup_{x \in V}M^{(x)} \subseteq V
$$
which essentially tell us that $V = \bigcup_{x \in V}M^{(x)}$. Since any union of open sets is open, $V$ is open too.
This essentially wraps up the proof since $U$ is any open set in $\mathcal{T}_Y$ and its preimage is open with $f$.