Sore nipples now??

I’m 10 months into breastfeeding, and my baby has had teeth since 3 1/2 months without it causing any problems. But now all of a sudden it hurts and my nipples are sore. This is how it looks after nursing. Any idea what’s going on? Any advice?