Thank you for your feedback on our product. Unfortunately, right now, due to how Atlassian has built Confluence Cloud, the Expand macro does not work inside of Tabs.
However, our team is working on a fix to make Expand work inside Tables that are inside Tabs. We hope to release this fix soon.
Please, let us know if this would fix your use case.