I found the answer! My version is ue 5.3.
-
Create a ,Blend mask, in the mesh or skeleton editor. Assign index 1 to the desired bone.
-
In AnimBP make a blend with a mask and transform the desired bone through Transform bone and check the boxes as in the photo against Mesh Space Scale Blend.
-
After that, everything should work!!!