Substring of __ before __

untitled script pic (10)
It think it should return nothing: no "z", no substring before "z"

in 2022, i found similar issue

bugged version
image
corrected version
image

(The new block if you want it)
untitled script pic (12)

I don't think that's a bug. That's actually intended to become like this, as it is the opposite of the substring of [] after [] block. Not a bug.
Beaming

Yeah, we did it that way on purpose. I can see an argument either way, but our idea was "take characters from this string but stop when you get to a z."