Fix greedy posix regex on URI template pattern