To match a literal question mark in regex, you need to escape it with a backslash, i.e., use '\?'. In C#, this should be written as '\\?' due to the additional escaping requirements.
When using Regex in C#, the string must take into account the language's escape sequences. Therefore, using '\\?' correctly represents the literal '?' character to the regex engine.
Collection
[
|
...
]