You don't need to carry this guilt. A short antibiotic course like this, taken correctly this late in pregnancy, is very unlikely to harm your baby or cause anaemia.
Next Steps
Mention this to your obstetrician at your next visit so it's noted in your file, though no extra tests are needed just for this.
Health Tips
One course like this won't meaningfully raise antibiotic resistance risk for you or your baby.