According to a 2019 article, local anesthetics can cross the placental barrier. This means they can reach the fetus.
However, there have been no reports of negative side effects in babies who experienced exposure to typical doses of suitable local anesthetics in the womb.
Local anesthetics safe for use during pregnancy include lidocaine and prilocaine. Bupivacaine and mepivacaine may not be suitable.