Take this input:
<div id="ps-content">foobar</div>

and apply this XPATH 2+:
//div[matches(@id,"^s-content$")]

In BaseX command-line it matched!  despite the fact that "^" in regex language means "the start of the string".

With Saxon and Xidel command-line it correctly doesn't match.
Why does it match in BaseX?