Numpy v2 added a new variable-width string data type. This is much more performant than variable-width string arrays in Numpy v1 because those stored a Python str for every element.
It would be great to have a safe way to access this data. It looks like currently the only APIs are in the unsafe npyffi module.
cc @ngoldbaum