Haven't touched this code in a while, but does this also need to be `<regex>` instead of `<string>`?