Split Variables on Legend for Time series

Hi everyone

I am using a multi variable that returns equipment strings. Is there a way to split these up in the legend and on the tooltip? As of now they are combined. My queries for the data are done in AWS timestream and queries for the equipment variable are done in SQL Server.

The variable is $Equipment.

Here is the output of the variable:

Right now they are all combined and separated by commas.

Thanks for your help!