diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index 8cd2186011..7c3760250b 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -427,7 +427,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys
else:
existing = g.db.get(Group, name)
if existing:
- sanitized = group_mention_regex.sub(r'\1!\2', sanitized)
+ sanitized = sanitized.replace(i.group(0), f'{i.group(1)}!{i.group(2)}')
soup = BeautifulSoup(sanitized, 'lxml')