If you need a tooth to be removed due to it being infected, get it taken out. Or get a root canal, it might not need removing. But the main thing is, if you have an infection from the tooth (and it sounds like you do), get it handled right away if you are breastfeeding. The infection can do your body harm.
This is something you should probably ask your doctor since I'm assuming they'll use anesthesia. .