chore: add refactor changelog category, end entry at any horizontal rule (#6271)

Assisted-by: ClaudeCode:claude-opus-5-5
diff --git a/tools/make_changelog.py b/tools/make_changelog.py
index 8d2c7b0..dac7853 100755
--- a/tools/make_changelog.py
+++ b/tools/make_changelog.py
@@ -20,7 +20,7 @@
     (?:\s*<!--.*?-->)?                     # Optionally match one comment
     (?P<content>.*?)                       # Lazily capture content until...
     (?=                                    # Lookahead for one of the following:
-        ^-{3,}\s*$                         #   A line with 3 or more dashes
+        ^(?:-{3,}|_{3,}|\*{3,})\s*$        #   A horizontal rule (---, ___, ***)
       | ^<!--\s*readthedocs                #   A comment starting with 'readthedocs'
       | ^\#\#                              #   A new heading
       | \Z                                 #   End of string
@@ -71,6 +71,7 @@
 cats_descr = {
     "feat": "New Features",
     "fix": "Bug fixes",
+    "refactor": "Refactoring",
     "docs": "Documentation",
     "tests": "Tests",
     "ci": "CI",