Collapsible text box needs to show tags from a collection

Question:
How to display tags from a collection in a collapsible text box

Product:
Wix Editor

What are you trying to achieve:
This is for some repeaters that show items from a collection. Natively, tags can’t be displayed in collapsible text boxes, though possible in simple text boxes.

The following code worked well for a very similar thing. But instead of the field type being a location object, this time it should be tags. Just that substitution.

$w.onReady(async function () {
    const result = await wixData.query("Properties").find();
    if (result.items.length > 0) {
        const item = result.items[0];
        const location = item.mapLocation;

        if (location) {
            const country = location.country;
            const state = location.subdivision;
            const city = location.city;

            $w("#collapsibleText").text = `${city}, ${state}, ${country}`;
        }
    }

});

What have you already tried:
Tried GPT & available tutorials, none work.

Many thanks <3