There’s a node in Collab Template called: GetHierarchyLastParent:
GetHierarchyLastParent
You can recreate in your own common function library:
Note that you may want to check if the input Actor ref is valid / tweak for robustness.