I think you should use `force_text` here since the regex match can't be a promise and `smart_str` aliases it on Py3.