I'm showing that $$J^2 = \frac{1}{2}\bigg[J_{\alpha\beta} J^{\alpha\beta} + \frac{2}{M^2} P_\alpha J^{\alpha\gamma} P^\beta J_{\beta\gamma}\bigg]$$ is a Casimir of the Poincaré algebra. The brackets of this algebra are given by \begin{align} \{P^\mu, P^\nu\}&= 0 \\ \{P^\mu, J^{\rho \sigma}\}&= \eta^{\mu\sigma}P^\rho - \eta^{\mu\rho}P^\sigma \\ \{J^{\mu\nu}, J^{\rho\sigma}\} &= \eta^{\mu\rho} J^{\nu\sigma} + \eta^{\nu\sigma}J^{\mu\rho} - \eta^{\nu\rho}J^{\mu\sigma} - \eta^{\mu\sigma} J^{\nu\rho}. \end{align} In my calculation I arrive at an expression that $$2\{J^2, P^\mu\} =2J^{\mu \alpha}P_\alpha + 2P_{\alpha} J^{\mu\alpha} + 2P_\alpha J^{\alpha \mu} + \frac{2}{M^2}P^\mu P^\gamma P^\beta J_{\beta\gamma} +2 P_\alpha J^{\alpha\mu} + \frac{2}{M^2}P^\alpha J_{\alpha\gamma}P^\mu P^\gamma.$$
I am confused about the first term, which comes from computing $$\{J^2, P^\mu\} = J_{\alpha\beta}\{J^{\alpha\beta}, P^\mu\} + \{J^{\alpha\beta}, P^\mu\}J_{\alpha\beta}.$$ It seems to me that we'll always get a term like "$J\cdot P$", but we can't necessarily write this as "$P\cdot J$" don't commute?
In the end my question boils down to this: for general Lie algebras we can't write the Lie brackets as commutators of the generators. Then what am I doing incorrectly here? Or, alternatively, why is it okay in this case to view the Lie bracket as the commutator?