What's the problem this feature will solve?
This performance improvement was discussed in upstream distlib here, but was rejected: pypa/distlib#239. Performance measurements can be found in that discussion.
Describe the solution you'd like
Override distlib.scripts.ScriptMaker.script_template with a template that doesn't import re.
Alternative Solutions
Keep current state.
Additional context
Previous discussions:
Code of Conduct