Weird Bone Deformations

Hello Everyone, I’ve been rigging for a while now and this is the first time I’ve encountered this problem.

I have tried removing the armature modifier and reattaching it with Automatic weights but to still end up having the same problem.

If it helps,

I’m using the meta-rig with a few adjustments.