We know that not every Lie algebra has commutator $XY-YX$ as its Lie bracket. For example, $R^3$ with vector cross product. However, every Lie derivative $\mathcal{L}_X(Y)=XY-YX$ of a Lie group is a commutator (by differentiating push-forward of a vector field by a flow of another vector field at $0$). Therefore by Lie group-Lie algebra correspondence, I believe every Lie algebra is $isomorphic$ to some Lie algebra with commutator Lie bracket. In above example, $(R^3, \times) \cong (\mathfrak{so_3}, [,])$ as Lie algebras, where the latter has commutator Lie bracket.
My attempt is as follows. Given $\mathfrak{g}$ a Lie algebra, we are done by finding a Lie group which it is tangential to. The idea is to consider the adjoint representation $ad: \mathfrak{g}\to \mathfrak{gl(g)}$ with kernel $Z(\mathfrak{g})$. So we consider $exp(\mathfrak{g}/Z(\mathfrak{g})) \ltimes R^k$ where $k=dim\ Z(\mathfrak{g})$. This $exp(\mathfrak{g}/Z(\mathfrak{g}))$ corresponds to a Lie subalgebra of $\mathfrak{gl(g)}$ so has commutator as Lie bracket. To make the dimension right we just append $R^k$ to compensate the dimension of the kernel of $ad$.
I am new to Lie theory so I am not sure if my intuition on vector field composition or exponential maps are correct. I could not find a proof of this anywhere.
Any suggestions and corrections are very much appreciated.