Your required output is not valid elixir, as :"}": is not a known construct in the language, also you are missing a closing ], but have a closing } too much.
Therefore I think you wanted to say that you expect [{:"{", 1}, {:"}", 1}]. Which indeed is what you have.
[foo: :bar] is just nicer syntax for [{:foo, :bar}].
This is called a “keyword list”. A subset of proplists.
** (FunctionClauseError) no function clause matching in :lists.sublist/2
The following arguments were given to :lists.sublist/2:
# 1
"def P () =\r\n u?m[v] | u!m[v].done"
# 2
1
(stdlib 3.10) lists.erl:353: :lists.sublist/2
c:/Program Files/erl10.5/lib/parsetools-2.1.8/include/leexinc.hrl:38: :lexer.string/4