Treat your tags as a list and nested list. So your first list is separated by #, your sublist is separated by ;
You are trying to change Item 2, in List 1 of List 1.
There are two ways to do it. First is you try to parse the list and lists of list, replace the index, and then rebuild…
OR . (easiest)
Use this block. If you know what it was BEFORE the change (which you need to know anyway), and your know what it will be after the change, then use this block on the value. Don’t over complicate it
You can use the “join” command. I don’t think it is practical.
Remember TinyDB does not see this as a list. It sees it as a string of text. So the best way to do it is once you get your result, now use the Replace All Text to replace the text in the value, and then write it again.
You can use your list logiv to extract it, and the replace logic to replace it