ENH: Improve perf of str_extract