Nasal flaring is a sign of respiratory distress in babies with other respiratory problems. When it appears on it's own, it is more usually a sign of pain or other distress, not respiratory.

Is he crying when it happens? Does he show any other signs of respiratory problems, like head bobbing, or drawing in the muscles underneath his ribs to breathe?