In Liquid, one can remove a character X from a liquid string like so,
{{ 'random_string' | remove:'X' }}
E.g. the { character can be removed in this way.
However, removing the } character this way gives the following error,
Liquid syntax error (line 15): Variable '{{ 'random_string' | remove:"}' was not properly terminated with regexp: /\}\}/
Which probably has to do with the usage of the } character in the Liquid language.
Question
How do I remove the } character from the string?