I once had my heel stuck in between the pedal, and I nearly freaked because it meant I couldn't take my foot off the accelerator easily to brake.
After that, I learnt to take off my heels while driving. It's a hassle, but at least I don't worry about my shoes or getting stuck.
That is so scary! I've had that happen to me before.