pub fn normalize_re_path(path: &str) -> String
Normalize a Django re_path() URL pattern. Strips leading ^ / trailing $ anchors and converts (?P<name>...) to :name.
re_path()
^
$
(?P<name>...)
:name