Sauté red onion, garlic, red pepper flakes, and rosemary in 1/4 cup olive oil in a large skillet over medium-high heat 2 to 3 minutes or until crisp-tender. Stir in beans, and cook until thoroughly heated. Season to taste with salt and pepper. Set aside.