There is very limited data on the safety of hair dyes. The chemicals are irritating to the skin and cause burning if used carelessly. The effects on the developing fetus are unknown. Highlights should pose limited risk since they don't sit on the skin.
If you choose to dye your hair yourself, you should use gloves and rinse well to get out the excess dye. To avoid any risk, delay dying your hair until after delivery.