Module should use OptRegexp for regex pattern option

Instead of using OptString, OptRegexp should be used because this
datastore option is a regex pattern.
Use the correct var
Better fix based on feedback

Tell daddy how you want it.
Land #2251, @wchen-r7's patch to use OptRegexp