Flagyl is sometimes used in pregnancy to treat infections. So, it does not cause any harm to the fetus. Do not worry.