Test regexp parsing and add support to flagged regexp in RipperParser