diff --git a/cps/admin.py b/cps/admin.py
index 84106221..f7a7bee2 100644
--- a/cps/admin.py
+++ b/cps/admin.py
@@ -2089,7 +2089,7 @@ def extract_user_data_from_field(user, field):
 
 
 def extract_dynamic_field_from_filter(user, filtr):
-    match = re.search("([a-zA-Z0-9-]+)=%s", filtr, re.IGNORECASE | re.UNICODE)
+    match = re.search(r"([a-zA-Z0-9-]+)=%s", filtr, re.IGNORECASE | re.UNICODE)
     if match:
         return match.group(1)
     else:
diff --git a/cps/string_helper.py b/cps/string_helper.py
index b2d0cf81..d263dd2f 100644
--- a/cps/string_helper.py
+++ b/cps/string_helper.py
@@ -19,5 +19,5 @@ import re
 
 
 def strip_whitespaces(text):
-    return re.sub("(^[\s\u200B-\u200D\ufeff]+)|([\s\u200B-\u200D\ufeff]+$)","", text)
+    return re.sub(r"(^[\s\u200B-\u200D\ufeff]+)|([\s\u200B-\u200D\ufeff]+$)","", text)