There are some amazing guitarists out there that know very little to no music theory. I went the opposite direction as you and spent significantly more time learning theory than playing, and I regret it. My playing ability is far behind my musical knowledge.
Learning songs by ear is in my opinion the best way to learn guitar, because the material you write sounds most like what you enjoy listening to. My proudest improv practices have almost always come after learning something by ear. Learning things by ear allows you to not get hung up on thinking about songs or parts of a song that are not entirely in a single key because you are playing by ear.
Music theory is nice to know, but ultimately I wished I had gone your route and learned more songs.
However, being able to recognize patterns and keys greatly helps you to learn things by ear because you have an idea of where the notes in a key are. If you are wanting to learn music theory, there are some amazing threads on this site to help you, and YouTube is a fantastic resource as well. Andrew Huang and Rick Beato are excellent channels that cover almost any theory topic you can imagine.
Rick Beato's Channel:
https://www.youtube.com/channel/UCJquYOG5EL82sKTfH9aMA9Q
Rick Beato's Intro to Music Theory:
Andrew Huang's Channel:
https://www.youtube.com/channel/UCdcemy56JtVTrsFIOoqvV8g
Andrew Huang's Intro to Music Theory: