Retargeting won't work properly, deform the target mesh and positioning it with the pelvis to the ground

Okay, the problem was with the Blender FBX exporter. I used the scale option to adjust the character’s size, but it caused a proportional shift in the bone movements, so it’s best to avoid using it.

That’s the critical option if anyone encounters the same issue.