Not sure why we even have to worry about selectionEnd? We just need to know where the cursor is when is selectionStart.

Shouldn't we just return the character immediately after the matching "{{" all the way to selectionStart?