I experienced something similar, so I know what you mean. But like someone else mentioned... if it’s a pattern of behaviour from a variety of sources then that’s pretty telling.
I empathise with people who have been bullied or frozen out of friendship groups, it can happen to anyone.
But genuinely pleasant, nice people will make new friends and pick up new friendship groups, even if they are the victim of something like you described. For me it’s a huge red flag if someone isn’t able to maintain friendships, or if they are constantly making new friends then dropping them. It’s hard to be a nasty person and keep long term friendships, because people see your true colours, no one can hide that forever. So if a person hasn’t got any long term friendships or can’t maintain them for very long it sends alarm bells off in my head.