feature: implemented the ngx.re.sub and ngx.re.gsub functions with FFI.