Since both Oxygen and Nitrogen have a double bond character, they are both SP2.
Their hybridization is examined separately, not only during resonance.
Therefore, when a double bond is or can be present through resonance, hybridization is sp2.
Hope this helps.