This is the relevant section of the invoice:

The rule:

The pattern:

The table (start & end):


The result when set to match 1st instance:

The result when set to match 2nd instance:

As you can see it is picking up the third match, but I cannot figure out why.