Weird finger rotation in testing Muscles&Settings

Hi!
I have this weird thing that never happened to me before, where while I was checking the bones for this model and the index finger does this weird thing where it goes outside and also the whole hand looks weird. It didn’t work like this in blender (where I also checked the rig multiple times), so I don’t know what I did wrong!!
I can only add one media, so here’s that:
image

If needed I can record the way the fingers move!
Any help would mean a lot!!