Okay looked it up. Apparently a VERY occasional SMALL dose of ibuprofen is okay in the middle of pregnancy, say for an occasional headache. Not recommended during the first 8 weeks of pregnancy because of the rapid development of the embryo.
Should definitely not be used for chronic pain (in other words, regularly).
Under no circumstances should it be taken after 32 weeks. May damage the foetus and can complicate labour and delivery (this must be the placental bleeding part I vaguely remember).
Soooo....ummmm....stop immediately

and send your
DH/DP down to the after hours chemist and get some Panadeine. For a blocked nose it's okay to use a nasal spray as long as you don't go overboard...my GP okayed this with my sinusitis. Also recommended is a saline nasal wash (disgusting but effective).
HTH.