Fixed error position for the backslash at the end of regex pattern.
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index fb622ec..aa2d64b 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -225,7 +225,8 @@
             try:
                 char += self.decoded_string[index]
             except IndexError:
-                raise self.error("bogus escape (end of line)") from None
+                raise error("bogus escape (end of line)",
+                            self.string, len(self.string) - 1) from None
         self.index = index + 1
         self.next = char
     def match(self, char):