I am doing something like this
std::regex regex ("\\|{|}");
The above throws an exception
regex_error(error_badrepea