@Sater Thanks for posting in our Q&A.
For this issue, intune can support for allowing WPA/WPA2 wifi connections. We can read the following article about Wi-Fi settings for Windows 10 as a reference.
However, for the requirement that prevent users to connect to not secured connections, currently it is not supported. During my research, I find other customer who has the same requested posted in Intune uservoice as below. We can vote and post our detailed request here. This is a place to collect customers' requirements and problems.
Thanks for understanding and have a nice day.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.