Rich Text Editor Formatting API Response

Hi all - thanks for any help you can provide on what I have below

I’m looking to format an API response within the Rich Text Editor plugin by Bubble by grouping “name” by “section name” marked in the response below:

I’ve made it this far by only getting them in separate lists seen here:
Screen Shot 2022-12-20 at 7.27.58 AM

An example of what I’m looking to achieve is this: