Nesting <ref> tags in <ref> tags is historically forbidden, and needs to stay forbidden, unless we actively make the decision to lift this limitation. At the moment the prototype (see T378814) allows nesting.
<ref details="additional details <ref> sub content </ref> "> main content </ref>