Ibuprofen should be avoided in the last three months of pregnancy. For the first six months, consult your doctor before use. Pregnant or breastfeeding individuals should seek medical advice before taking any medication.