Grouping inside the dropdown list is normally misunderstood by developers for a long time.
The required outcome is shown below:
To get an output like this on a dropdown, it is not good to add a new item in the dropdown and then add validations for not selecting that option.
The solution to this problem is failry simple and lies in basic HTML:
Use the “optgroup” property provided by HTML itself for such groupings.