Using re, not sre, stops deprecation warnings