fixed incorrect regular expression for std::function return type