I think it’s fine as it’s unlikely she was chosen for the role by the headmistress.
My son went to my husbands school. My DH was not a member of the senior leadership team, but my son was (imo) penalised for being a child of a member of staff.
DS represented the school at a number of events, but was never included in the photos that were published on the school’s social media. He never won any school competitions, was never picked for any school based opportunities and never came home with any merit awards etc
I had my suspicions about the situation but could never have proven them. Teachers were always pleased with DS at parents evening and eventually he got all A*s in his exams, so I knew that he was doing well.
After three years at the school the headteacher changed and suddenly my son was just as included as any other child. In the photos, bringing home the odd certificate etc. No big deal, but it meant a lot to him to see himself with his friends on the school website - he was very proud.
I understand that the first HT probably didn’t want to look like the school showed favouritism to the children of staff, but that really isn’t fair on the child. It’s a difficult one.
As long as things are done fairly and all children are treated the same, that’s what matters.