Semantic similarity on nested lists

Hi,

I was wondering if it is possible to compute textual semantic similarity between 2 nested lists.

The examples that I see here https://www.sbert.net/docs/usage/semantic_textual_similarity.html

receive as input flat lists.

Thank you very much