First of all you need to meet with the teacher to find out how she handles the situations when they occur and ideally you should observe the class a bit to get a true understanding of what is happening. Personally I don't think a 5yo is going to have a strong connection between her behavior at school and some non logical consequence meted out when she gets home hours later. 5yo generally get squirrely and silly because they lack impulse control and it takes practice to learn how to sit and listen. The teacher needs to be handling the problem as much as possible at school and have you do what you can at home (pep talks, read books about school, find practice situations like church or storytime at a library where you can be by her side).
In my son's K class the teacher spent the first 3 weeks of school figuring out the best combinations of kids sitting next to each other at circle time and at their desks. She has assigned seating for every situation and changed it around until she found the best combos. The kids who had the most trouble keeping their hands to themselves in the beginning sat the closest to her so she could help remind them. When a child gets silly during group/circle time, she respectfully asks them to take a break at their desk. They know to get up quietly, sit at their desk until they feel ready to rejoin (kid chooses that moment). They also have a picture hanging on the wall that shows how good listeners should be sitting, so when the kids get squirmy she just asks the class to check to see if their bodies look like the picture. Recess is never tied to misbehaving in class as that makes NO SENSE to a K student. Kids who have concentration problems need more recess NOT less.
There are a couple kids in my DS class that are struggling more than others with following directions in different situations, so she has set up a point system for those kids where they know she will report home how many listening points they earned for the day. That way it is more of a reward based system than an illogical consequence based system.
I strongly recommend you find some time to volunteer in the classroom so you can see your child and the teacher interact. I volunteer once a week and it has made a huge difference in how my son has adjusted because then I have a true understanding of the classroom dynamics and we can have meaningful conversations at home. Otherwise the conversations would just involve a lot of "I duuno" or "I don't remember" from my son.