What about updating   `desired_header_regexp = "^(?:\\\\s*#+\\\\s*#{section_title}.*|\\\\s*#{section_title}.*\\\ \\\\s*(?:-{2,}|={2,}))\\\ "`  to  `desired_header_regexp = "^(?:\\\\s*#+\\\\s*\\\\W*\\\\s*#{section_title}.*|\\\\s*\\\\W*\\\\s*#{section_title}.*\\\ \\\\s*(?:-{2,}|={2,}))\\\ "`