diff --git a/quickstats/_version.py b/quickstats/_version.py
index d63e7242df42b54bdbfd6cea66d6d3a159339056..680dc149bdf46beee726af0d8a3d163e3bd45ed6 100644
--- a/quickstats/_version.py
+++ b/quickstats/_version.py
@@ -1 +1 @@
-__version__ = "0.6.5.1"
+__version__ = "0.6.5.2"
diff --git a/quickstats/components/workspaces/xml_ws_base.py b/quickstats/components/workspaces/xml_ws_base.py
index 9aeaebcdb039201ef792e08ea958a99b6cbe936e..c817b0f19fefb4d2872b4a93913cd9291f9fa665 100644
--- a/quickstats/components/workspaces/xml_ws_base.py
+++ b/quickstats/components/workspaces/xml_ws_base.py
@@ -41,7 +41,7 @@ class BracketType(GeneralEnum):
     def __new__(cls, value:int, regex:str):
         obj = object.__new__(cls)
         obj._value_ = value
-        obj.regex = regex
+        obj.regex = re.compile(regex)
         return obj
     
 ConversionOperators = {