Merge branch 'security-fix-regex-dos-11-7' into 'security-11-7'
[11.7] Fix DoS in reference extraction regexes See merge request gitlab/gitlabhq!2777 (cherry picked from commit f6d9535085c5d155545865e3443dd96b5d6ecc5a) cfa6bf24 Fix slow project reference pattern regex