Preheat the oven to 350°F. Coat a 9 by 13-inch baking dish with nonstick cooking spray. If the rice isn’t cooked yet, cook it according to the package directions.
Heat the olive oil in a large skillet over medium heat. Cook the onion until translucent. Stir in the garlic and cook for about 1 minute, until fragrant.
Add the spinach and cook until wilted. Season with salt, pepper, oregano, and optional red pepper flakes. Remove from the heat and let cool slightly.
Stir together the cooked rice, spinach mixture, feta, beaten eggs, and milk in a large bowl. Spread the mixture evenly in the baking dish. Sprinkle with Parmesan if using.
Bake for 30 to 35 minutes, until the edges are golden and the center is set. Let cool slightly, then slice and serve warm.
Notes
Makes 6 to 8 servings, depending on portion size. Prep takes about 20 to 25 minutes; bake time is 30 to 35 minutes.