Hi @john john Pter,
Thanks for reaching out to us. We are very pleased to support you.
According to the information you provided and the research I have done, I may understand that you want only users in the security group to be able to share with external users at the site level. If there is anything wrong, please correct me.
If there are no issues, then I'm sorry that SharePoint doesn't have this setting at the moment. SharePoint site owners are externally shareable by default, and we can't restrict the permissions for external sharing to security groups only.
This official documentation documents all the settings for external sharing at the site level, but unfortunately there is no such thing as allowing only users in specific security groups to share externally.
We are always looking for ways to improve SharePoint, and your feedback and suggestions are very valuable.
We suggest that you can make suggestions on this SharePoint Feedback portal for “Allow only users in specific security groups to share externally” feature at the SharePoint site level. Your contribution will be highly appreciated.
MS will take this into serious account and make some modifications accordingly, which will benefit more community members.
Thanks for your meaningful contributions.
If you have any concerns or questions, please do not hesitate to reach me.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. It will be beneficial to more community members reading here. Your contribution will be highly appreciated.