Exporting and importing panels colors

Hello! I’d like to know if it’s possible to export and import a dashboard WITH metrics and their respective colours.

Currently, the exporter creates the “aliasColors” property and assigns a color to a metric. The problem is that, when you have a metric that is a variable (say, $something) the color isn’t applied correctly on the importing phase.

Is there any other way we can do this?

Thanks in advance,
best regards.