Its a gamble and honestly imo not worth it
Few risks with community bettas, even female.
Dropsy, having the food available to the other fish, a betta has less chance to have a controlled portion of food, and over eating can lead to problems with bloat and eventually dropsy which is nearly always fatal. And bettas are already prone to this issue.
Sudden aggression on tankmates, even a female betta can be aggressive. My girl cannot even be kept with shrimp, even larger ones like ghost and amano as she tears them apart.
Temperature, bettas need 78-82F temps and many community fish do better lower than 78, so finding that middle ground where no fish is kept at the extreme of their temp ranges can be tricky.