Yes, I've been through this with DS 13. Probably one of the most stressful and upsetting times due to the sheer helplessness and not knowing what each morning would bring. Needing to get to work myself and drop other DC off.
Happily, he got through it. Still has the odd wobbly day when tired, usually at the beginning of term, but he is fully integrated and happy and we have strategies to get through it.
For my DS, he has always been a slightly anxious child but the COVID lockdowns caused the 'refusal.' He was so overwhelmed with school life when they returned last March. He has to be driven to school due to location and he would freeze and not be able to get out. All sorts was tried and in the end we found that a reduced timetable, which gradually increased up to the full one, worked. He also had a safe space at break which he eventually grew out of the need for. This space had games, biscuits, a sofa and he was allowed to invite a friend. There were others who also used it and it is a real success story.
There has been the odd set back, usually at the beginning of term, but he has got through them and the school have been extremely supportive. Initially he was referred to CAMHS and that was a total waste of time as they would only see him if he was threatening to harm himself. We were lucky with the school and the fantastic SENCO as external help was very hard to come by.
Good luck, I hope you can get through this soon.