Can we change this to just ``url_pattern_re = url.replace('{identifier}', '(.+)')``?  It would save the mental effort when reading this line of recognizing that even though we're using a ``re`` function, there's no regular expression matching actually going on here.