This patch fixes 2584. Now the following works:
const std::regex r1("\\z"); assert(std::regex_match("z", r1));
I wasn't sure if the following should also work (see commented out tests):
const std::regex r1("\\z"); assert(std::regex_match("zz", r1));
Use LWG#2584 to make it clear it's a LWG issue