Yup, found it in [re.c](https://github.com/ruby/ruby/blob/trunk/re.c#2511) but it seems that this is [not part of the API](https://github.com/ruby/ruby/blob/trunk/include/ruby/re.h). Sorry about that.