[QRegex] fix matching of <:L> past end of string

Fixes RT #117889