this dollar is ok as it is escaped this dollar is ok as it is escaped
from django.urls import include, path, re_path

urlpatterns = [
    path("foo/", lambda x: x, name="foo"),
    
    re_path(
        r"^\$",
        include(
            [
                path("bar/", lambda x: x, name="bar"),
            ]
        ),
    ),
]