Changelogs API - 400 version is invalid with custom tag regex

Hello, I am trying to use the changelogs API to produce changelogs for test builds which are tagged as test_YEAR-MONTH-DAY. I used this config yml as instructed in the docs:

---
tag_regex: '^test_(?P<major>\d+)-(?P<minor>\d+)-(?P<patch>\d+).*$'

But running the command with the tag existing leads to this error:

glab changelog generate --version test_24-02-22 --config-file .gitlab/changelog_config.yml 
-> GET https://gitlab.com/api/v4/projects/11959441/repository/changelog: 400 {error: version is invalid}

I double checked on Regex101 and the tag name matches with the regex.