Regularity for nonlinear equations involving square Hörmander operators