Regularity for a class of sums of noncommuting operators