M.G.
I have a little one around same age who has recently had a bout of anxiety. Sometimes it rears it's head at bedtime. Typical I think for anxiety.
For us, allowing her to regress a bit has helped. So we went back to reading to her at bedtime - some of the stories are younger. I also found it extremely helpful to move bedtime ahead by a lot. Sometimes 1/2 hour to a whole hour ahead. So we're reading now way earlier - and we took away electronics after dinner altogether. I don't know if that was part of it - she's never been a big one for them, but I think it can stress some kids out.
If it were me, I would read to your child, in her bed. Maybe get her a new comforter, stuffy, new light, whatever to make room inviting again (transition age as tween) start new routine in there. Read till she's drowsy. Say you will each stay until she's drifting off (or asleep - whatever works). I'd do that for a week. From then on say you will come up and check on her until she is asleep for a week. Do baby steps.
Good luck and keep us posted :)