why does your foot/leg have a weird pain sensation after the tingly numbness is gone?

sometimes when my foot/leg gets numb i move it and it feels tingly but after the tingly feeling goes away sometimes i get this weird sensation of pain and it hurts so bad i can barely move it so i have to wait before this weird pain goes away.

what is that weird pain that happens after the numb tingly feeling goes away?