I don’t often give writing advice, but here is some actual, solid writing advice I 100% stand behind when writing contemporary, fantasy, or sci-fi:
Look at your side characters. Every single one of them. The villain. The neighbor. The captain. The politician. The doctor. The boss. Heck, even the animals—the horse, the dog, the cat, the creature.
If 50% of them aren’t female, why not?
Don’t default to male.