I came across the claim here which states that there are no complex semisimple Lie algebras of dimension $4$, $5$, or $7$. As the problem suggests, we can take a Cartan subalgebra $H$ and root system $\Phi$ so that $L=H\oplus(\oplus_{\alpha\in\Phi}L_\alpha)$ where $$L_\alpha=\{x\in L:(\forall h\in H)\ [h,x]=\alpha(h)x\}$$
As shown in Humphreys' Introduction to Lie Algebras, every $L_\alpha$ has dimension $1$, so $\dim(L)=\dim(H)+\vert\Phi\vert$. I know $\Phi$ spans $H^*$, so $\dim(H)\leq\vert\Phi\vert$. Furthermore, I know that for any $\alpha\in\Phi$, the only multiples of $\alpha$ in $\Phi$ are $\alpha$ and $-\alpha$. Since $\mathbb{C}$ has characteristic $0$, this implies $\vert\Phi\vert$ is even.
Finally, another fact which may be useful is that given nonzero vectors $x_\alpha\in L_\alpha$ and $y_\alpha\in L_{-\alpha}$, if we take $h_\alpha=[x_\alpha,y_\alpha]\in H$, then $x_\alpha$, $y_\alpha$, and $h_\alpha$ span a three-dimensional subspace of $L$ isomorphic to $\mathfrak{sl}(2,\mathbb{C})$. However, I am not sure how to connect these pieces to give the desired conclusion.
As a follow-up question, would the claim still be true if I replaced the field with an arbitrary field of characteristic $0$, or is it also necessary for the field to be algebraically closed?