You could either try a cool water spray in his face (a little rude but harmless) or hold his head under cool trickling water over the sink. It may wash out.
Or, you could wait for him to shed- they do shed the lining of their nostrils & heat sensing pits.
OR, try sucking it out- like by using a little rubber bulb syringe like they sell in drugstores for cleaning ears: (Just don't expect your snake to appreciate this either, lol.)
![]()