ruby/mri: add highlight regex function

Make it work for unused variable warnings