NNLO corrections to nucleon–nucleon scattering and perturbative pions