Exclude job artifacts of specific name

Hi, I would like to exclude certain artifact files that were found from a given path. See yml below:

artifacts:
paths:
- “[a-z]**/build/libs/something-*.jar”
exclude:
- “[a-z]**/build/libs/something-*{plain,sources}*”

Basically I want to exclude any “something” files with “plain” or “sources” in its file name.

I tried with regex but it seems like gitlab is using blob.