Is it safe to take lactobacillus while pregnant or breastfeeding?

Yes. Lactobacilli live in the gut. They will not cross the placenta nor be excreted in breast milk.
Yes. Should be no problem if you are otherwise healthy. Only if you have a horribly suppressed immune system would i work about this.