Escape URL for use in regex

Using a URL in regex without escaping it can cause issues (`.`, `?`, etc.). I'm trying to find any others in the project that use an unescaped URL in regex as well, as I fear it may potentially be exploited as a vulnerability if an unescaped URL is used in the wrong spot.