MacBook Pro not auto connecting to hidden wifi network
I recently bought a 15-inch 2019 MacBook Pro, and it has been working well except for one issue. My home wifi network is hidden, and if my laptop goes to sleep for more than a few hours, or if I leave home with my laptop, it won't auto connect to the hidden wifi network when I return home and start using it again. The network is set to auto-join, and I give the laptop a few minutes every time this happens to see if it will eventually connect, but it never does, which means almost every time I use my laptop, I have to enter the network name and password to connect. Additionally, I will note that the issue isn't specific to my home wifi network, as the network at my workplace is also hidden, and I experience the same issue. Any help is greatly appreciated.
MacBook Pro