No rule for this one
No ending or word group predicts the article of Verein. Learn it as a pair and say it out loud: der Verein.
der Verein
It's der Verein. Verein is masculine, plural die Vereine.
Ich bin in einem Verein.
I am in a club.
No ending or word group predicts the article of Verein. Learn it as a pair and say it out loud: der Verein.