Line 243 attempts to access non-imported regex

This was a result from existing unittests.