@Mally100 - SEN is often mentioned for a reason. Do you know much about autism? If not, maybe pipe down and be glad that you haven’t had to educate yourself about it. FFS.
OP, my DD started to behave like this about school at 6/7. She seems overly attached to me but then could be “fine” when I wasn’t there. This even led school to insinuate, at drop off, that she was “manipulating” me. She showed, and still did, a real preference for me and showed her emotions to and around me. That is because she was masking around other people. I was her safe person.
To cut a long story short, my lovely, bright, kind, “normal but very anxious” little girl had a complete breakdown when she was 8. She was so unwell that she couldn’t go out or sleep and showed some really alarming behaviours and even talked about wanting to die. She has been supported by CAMHS and is still unable to attend school full-time although she is making progress.
We now know that she is autistic and was completely burnt out from trying to hold it together all the time. Her diagnosis report even explains the subtle signs that mean girls can be missed, and the effect that has on mental health.
There were a couple of things that stood out to be in your OP, might just be worth looking into autism and masking in girls: