i've kept what i'm guessing is a similar 2.5 gal, split with two bettas. its works, but for two males, particularly since one of my males was a good size, it wasn't enough room for them to swim back and forth. now, since females are a bit smaller, a female on the other half would be okay. just make sure you have a lid on the tank. i'm actually considering this with my yellow male if i ever find a little yellow female.
though you could just set up a second 2.5 gal near his so he can flare when he wants to but still has lots of room to swim back and forth. your choice