Regex library conflict with unknown

I am no longer able to call the Regex lib from my production scripts.
My error is

error “-[__NSArrayM fastestEncoding]: unrecognized selector sent to instance 0x600003205290” number -10000 from current application

Unfortunately, the main script is called this way

run script file pathToProgram with parameters {settingsFileName}

So I don’t get a log file. Once I comment out my regex calls in my main script, “pathToProgram”, the errors go away. I initially call

use script "RegexAndStuffLib" version "1.0.4"

and use regex change as follows
set clientFolderPOSIX to regex change thisClientFolder ¬
search pattern “:” replace template “/”

I have this issue on M1 Macs running 13.3.1 (a) and
Intel Mac Mini’s running 12.6.5

If I call the RegexLib by itself then I can get the handlers to run. Could handlers in other libraries, or called scripts, conflict?

I updated to version 1.0.7 and the issue went away.
Apologies for missing the obvious.