keep the buffer object around while we're using it (closes #14212)
diff --git a/Misc/NEWS b/Misc/NEWS
index 250dd81..58c63e8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -549,6 +549,9 @@
 Extension Modules
 -----------------
 
+- Issue #14212: The re module didn't retain a reference to buffers it was
+  scanning, resulting in segfaults.
+
 - Issue #13840: The error message produced by ctypes.create_string_buffer
   when given a Unicode string has been fixed.