std.regex - fix issue 12105

Handle the case where a lazy quantified loop will have
pessimistic empty "quick test", for example
in front of a lookaround.
Merge pull request #1959 from blackwhale/issue-12105

std.regex - fix issue 12105