There is `getBeginningOfCurrentWordBufferPosition` which does take a `wordRegex` option.