diff --git a/pyproject.toml b/pyproject.toml
index 45702abe519b19e0e391b59d0ee06f39981322dd..3dd659d441830e522d2f5e7b9b0f6189e896f95a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -57,9 +57,9 @@ regex = '''
   (?P<minor>\d+)
   \.
   (?P<patch>\d+)
-  (\-
-    (?P<extra>.+)
-  )?
+  (?P<pre>((a|b|rc)\d+)|)
+  \.?
+  (?P<dev>(?<=\.)dev\d*|)
 '''
 
 [tool.tbump.git]