The upcoming Array API revision 2025.12 will allow the second argument of `searchsorted` to be a python scalar (see [data-apis/array-api#982](https://github.com/data-apis/array-api/pull/982)).