getting rig with IK to work with Humanoid RIG

Importing a custom rig from blender with IK bones causes issues for me when setting the rig to humanoid. The hands for instance will end up parented to the IK handle and not the lower arm bone and the hands will not work. Removing the IK and reparenting lets everything work as expected, but I don’t want to have to animate without IK.
Is there anything I can do to get the bones to parent correctly while keeping IK?

a few steps to do,

ensure the rig bones are named correctly in blender so unity can detect them automatically,

open the humanoid rig setup editor in unity and check if all bones are assigned correctly, you can reasing them change position, rotate them to fix issues ecc, everithing should be green on all the bones.

I found a solution:
Basically doing what Rigify in blender does, I duplicated the rig without the IK, named the new bones to signify they’re deformation bones and placed a copy transform constraint on each bone to its corresponding Bone. I set the originals(IK set) to not be deform bones and selected only deform bones in fbx export.
I can now animate with IK and export a proper rig for Humanoid avatars