This is called cervical abrasion.
If you suffer from acidity and use too much force to brush your teeth, it leads to cervical abrasion.
The yellow spots are inner part of your teeth.
Next Steps
Visit your dentist and get a restoration done.
Health Tips
Delaying treatment will lead to further damage of teeth.
Use fluoridated mouthwash twice daily to help strengthen teeth.