Welcome to the Make community!
To do this, you can use the built-in function replace
— “Replaces the search string with the new string.”
{{ replace(text; regular_expression_pattern; replace_string) }}
e.g.:
{{ replace("[[test]]"; "/(\[\[|\]\])/g"; emptystring) }}
an example screenshot can be found in this similar question: How to extract file name with regex - #5 by samliew
For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.