in the docs it is mentioned that \p{Word} matches the equivalent of: [\p{M}\p{Nd}\p{Pc}\p{Alpha}\p{Join_Control}] as it's also defined in the unicode spec
What I mean is that the current implementation of \p{Word} does not seem to match \p{Join_Control} even though it should and it also says so in the docs
The patch to master modified CR_Word on enc/unicode/16.0.0/name2ctype.h, but Ruby 3.4 uses enc/unicode/15.0.0/name2ctype.h that has a different content in CR_Word. I'm not sure how to backport this properly. Could @procmarco or anybody else have a look at making a backport PR to ruby_3_4 branch on GitHub?