Just in case for someone who came to this article because of the same issue like me.
It is just needed to edit/create a new location with a new name.(no new settings inside)
https://www.igeeksblog.com/mac-disconnecting-from-wi-fi-after-sleep-wake/
Topic:
App & System Services
SubTopic:
Core OS
Tags: