Yes, it's a phase
DD did this at just over 2 and it went for a few months on and off. At daycare she would cling to me and cry when previously she would run off happily.
She also wanted me to do everything for her, when previously it was either me or DH. It became "My mummy" for everything.
Was kinda adorable but also frustrating, too especially the daycare thing.
It just gradually passed. I had to talk her through lots of things like going to daycare and going to swimming lessons. I would talk to her about what was coming up in simple terms "Tomorrow you've got pre-school. Mummy will drop you off and then you'll play and have lunch and have a nap and then Mummy will pick you up". That kind of thing - over and over and over until it settled down.
With swimming I had to bribe her - I promised her a new swimming cap and pink goggles if she didn't cry and amazingly that worked. She's a real girly girl and loves getting new things. Along with talks about how "swimming's fun and you're a big girl now, you don't need to cry at swimming".
Good luck with it.