A comment about legal fees. Always be clear what is being discussed. Does it include the court's costs, often quite low? Does it include the lawyers' bills, generally quite high? Or both?
This is similar to a father agreeing to pay the school expenses. Is it
any and all expenses? It pays to detail what the agreed upon obligation includes or doesn't include. Here's a story recounted many years ago warning us not to make too many assumptions lest we get stuck.
In any deals, make sure you know what the maximum costs are, set price limits to the local inexpensive comparables. There was one dad here many years ago who agreed to pay "school expenses", figuring they would be only a few hundred dollars per year in the current public school system. Ex then immediately enrolled their child in a private school and he got stuck with high tuition costs and the court just looked at him and essentially ruled, "You agreed she would handle school decisions and that you would pay the costs, you're stuck."
A final thought... While your stbEx did not get what she felt she was entitled to or deserved, you are right to expect more attempts like this. She will try again and again. In her mind, "whatever works". My story, at the start of my separation and divorce she was charged with Threat of DV. She never pursued making DV allegations against me except for one weak attempt years later when trying to block me from getting full custody of our son. However, she quickly discovered that just about any type of child abuse claim immediately got the professionals' attention. Yes, the claims were virtually endless for about 4-5 years.