decodeRegularExpressionOptions
Decodes this value as the options of a regular expression.
A BSON regular expression is composed of a pattern and options. To decode the pattern, see decodeRegularExpressionPattern.
Throws
If the value is not a BsonType.RegExp.