Gevrey regularity for a class of sums of squares of monomial vector fields