Match can't find groups if it is case insensitive

The shortcut app seems to have a bug regarding text match grouping when trying to match a lowercase string to a capital case one. The match happens, but the regular expression groups are not properly displayed.

To replicate, create a shortcut with the following actions:

  1. Match \d-(george) in 2-George check case-insensitive on
  2. Show Matches (this will show 2-George)
  3. Get Group At Index 1 in Matches
  4. Show Text This will not print anything