std::regex is part of c++11 anyways so there's nothing to integrate with your build system.
I put this code in a standalone cpp file so that it compiles to its own object in parallel with the rest of the system. I've never had issues with it with regards to build times.