Better @Path annotation regex handling

Signed-off-by: Alexander Prokopyev <xana4ok@gmail.com>