Regex.split( ~r/\r|\n|\r\n/, String.trim(text)) should totally do the job. Please make sure, you are actually assigning the result of the operation to a variable!
If you do that already, please show a little bit more context (the complete function) and an example call that shows how the string is not split.
It’s always nice to post the actual solution after finding it.
This recapitulation does help to understand the error and to not repeat it. Also people having the same problem might discover your solution and might apply it to their problem.