A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
The guessing game continue... Maybe this is what you want?
SELECT t.clmn,v.ordinal ,v.value as MODALITY
FROM dbo.test t
CROSS APPLY STRING_SPLIT(t.modalities,'|',1) v
GO
This fits your requested result
Note, I only got this idea after I saw @EchoLiu-MSFT guess that you need t split the content. Using the third parameter can solve the needs in this case (it is a optional parameter which is not supported in current versions of SQL Server on premises)