[guided]Both $\mathfrak a$ and $\mathfrak a^\perp$ are finite-dimensional semisimple Lie algebras over $F$, and both have dimension strictly smaller than $\dim_F \mathfrak g$. Therefore the induction hypothesis applies to each one.
Applied to $\mathfrak a$, the induction hypothesis gives simple ideals
\begin{align*}
\mathfrak a_1,\dots,\mathfrak a_p \trianglelefteq \mathfrak a
\end{align*}
such that
\begin{align*}
\mathfrak a = \mathfrak a_1 \oplus \cdots \oplus \mathfrak a_p,
\qquad
[\mathfrak a_i,\mathfrak a_j]=0 \quad \text{whenever } i\neq j.
\end{align*}
Applied to $\mathfrak a^\perp$, it gives simple ideals
\begin{align*}
\mathfrak b_1,\dots,\mathfrak b_q \trianglelefteq \mathfrak a^\perp
\end{align*}
such that
\begin{align*}
\mathfrak a^\perp = \mathfrak b_1 \oplus \cdots \oplus \mathfrak b_q,
\qquad
[\mathfrak b_i,\mathfrak b_j]=0 \quad \text{whenever } i\neq j.
\end{align*}
We must still check that these summands are ideals of $\mathfrak g$, not only ideals of the smaller summands. Let $u \in \mathfrak a_i$ and let $x \in \mathfrak g$. Write $x=y+z$ with $y \in \mathfrak a$ and $z \in \mathfrak a^\perp$. Since $\mathfrak a_i \trianglelefteq \mathfrak a$,
\begin{align*}
[y,u]\in \mathfrak a_i.
\end{align*}
Since $[\mathfrak a^\perp,\mathfrak a]=0$ and $u \in \mathfrak a$, we have
\begin{align*}
[z,u]=0.
\end{align*}
Therefore
\begin{align*}
[x,u]=[y+z,u]=[y,u]+[z,u]\in \mathfrak a_i.
\end{align*}
Thus $\mathfrak a_i \trianglelefteq \mathfrak g$. The same argument, with $\mathfrak a$ and $\mathfrak a^\perp$ interchanged, shows that each $\mathfrak b_j \trianglelefteq \mathfrak g$.[/guided]