more complex matching for soplink template, other cases of brace inputs