Better @Path annotation regex handling

It was not properly hadling {} regex quantifiers

Signed-off-by: Alexander Prokopyev <xana4ok@gmail.com>