I trapped a nerve in my neckn in Feb. It was agony and I couldn’t work for 4 weeks. Zwifting was ok as it didn’t cause any additional pain. Outside biking took a couple of months and then it was a very slow build up over spring and summer. Returning to running was more straightforward but again it was a slow build up.
I had physio, did my stretches and was patient. I was also on some strong painkillers for weeks, it was a releief to stop taking them.
Even now months later I still have to move my head to “unclick” my neck several times a day.
Worth getting a MRI if you can, juat to make sure it is a trapped nerve.
Good luck with the recovery.