I have developed a lua module to interact with cyclonedx 1.6 SBOMs, if you want you can add it!
It's wip, but its working for simple sboms
https://github.com/woshiwuja/cyclonedx-lua
I also have developed a working module for premake5 in https://github.com/woshiwuja/cyclonedx-premake