As Kanaparthi Said above, its better to use Embedded section instead of Control.
To add Section as a control, you have to add your custom HTML code as below ,but when you refer this custom control in any section, though it displays the UI view, it still behaves as a Property control and asks you to enter any Property reference on click of Gear icon because Control are meant to how we display Properties on UI. and other concern is to write a big complex HTML to maintain.
So its better to use the Embedded section over custom control for section.
It looks like you are trying to create a custom control, In that case instead of inserting your code inside a non autogenerated section, you can create new Control rule, paste your code inside it and use the control as per your need.
If you need some guidance on how to create a custom control please follow this post, I have provided the details step by step how to create and use it.