Helper function to check for literal RegEx
See our website @babel/helper-regex for more information.
Using npm:
or using yarn: