The
CDC appears to define high risk as those who are 65 and older, those who have compromised immune systems, and those who are pregnant. (You do have to scroll down a little to see it, but it's under the section titled "Important for people who are at higher risk for COVID-19.") Immunocompromised people can be defined by those with medical conditions that weaken the immune system
or people who take medications that suppress the immune system. All of that said, I would still talk to your doctor about it because they may still recommend you get the vaccine.
I got my last COVID vaccine back at the beginning of January 2022 though, and still got COVID about 7 months later in August from a co-worker. And that was with the initial vaccines, plus two boosters (the aforementioned one in January 2022, plus one I'd gotten about a month prior). Haven't had any boosters since getting COVID, and I haven't had it again either since getting it, even though two more of my co-workers got it last summer and I was around them nor did I get it when my mom got it around December 2023. (Coincidentally, she didn't get it when I had it either, despite regularly checking on me and being in the same house as me.) But again, definitely talk to your doctor, because they may have different recommendations for you based on whether or not you've had it, if you've had prior vaccines for COVID, and whether or not you're high risk (or even your general area's risk level).