I think the documentation should clearly state that the $Matches hashtable will only contain the first occurrence. It took me quite some time to get that.
It seems that this was already fixed once (#3701) but got missing again.
Thanks!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.