How do I get AnimSequence bone tracks in UE5 C++

Hi, I recently migrated my project to UE5. In UE4 I was getting the bone track data from:

UAnimSequence::GetRawTrackToSkeletonMapTable()

This function was deprecated in UE5, The API suggests UAnimDataModel and FBoneAnimationTrack class, but they are editor only. Is there a new way (or just another I’m not aware of) to access the tracks to bone index data.

Did you ever figure this out?