Pumpkin seeds can be a tasty treat, but also very dangerous too. A lesson that is learned the hard way (we have been there :/) The oblong irregular shape of the seeds hull is very prone to getting stuck between their teeth and the pouch.
I'm glad to hear that you didn't waste no time in taking Sophie to the vet, and even happier that the vet was able to remedy the situation and make Sophie better