Revert "Escape paths which are passed into the regex"

This reverts commit e541a3ab5c805576fb1706026960844122586e3b.