Ambiguous frontmatterLinks

Consider

---
parent:
  child: "[[link]]"
"parent.child": "[[link2]]"
---
app.metadataCache.getCache('note.md').frontmatterLinks)

Outputs

[
  {
    "key": "parent.child",
    "link": "link",
    "original": "[[link]]",
    "displayText": "link"
  },
  {
    "key": "parent.child",
    "link": "link2",
    "original": "[[link2]]",
    "displayText": "link2"
  }
]

We have two entries with the same key, which seems like a design flaw.