A small ulcer at the spot where the dental instrument touched your gum is a common, minor reaction to a drilling procedure, not something to worry about on its own. Mild gum trauma like this usually heals within a week as your mouth repairs itself, and it isn't linked to your pregnancy or a sign the infected tooth is getting worse.
Next Steps
Rinse gently with warm salt water a few times a day to keep the area clean, and avoid very hot, spicy or hard foods while it heals. Since the tooth itself is infected and black, do go back to your dentist, who can treat it safely at this stage of pregnancy.
Health Tips
See your dentist sooner if the ulcer grows, becomes very painful, or you notice swelling, pus or fever, since that could mean an infection.