Change import of re

Thanks @ebolyen and @jairideout