Fix: trailing parens get removed from interactive mode queries
Created by: attfarhan
Fixes https://github.com/sourcegraph/sourcegraph/issues/12506 and fixes https://github.com/sourcegraph/sourcegraph/issues/12690.
The closing paren character seems to be mistakenly excluded from literal values, hence it will always be excluded when parsing queries. Can you confirm this is the correct fix @lguychard?