You're welcome. Is there always only one "|"? ie: just two values, left and right?
If so then maybe this added to the SELECT:
when left(col, len(@choice)) = @choice then 'Left'
when right(col, len(@choice)) = @choice then 'Right'
else 'no match'
end as [side]
Be One with the Optimizer