Fix regex

~ in nginx matches a regex, and just a dot `.` in regex matches any single character. To match a the dot we need to escape it like `\.`