Transfer cooked onion to a large bowl; add bread cubes, tossing well to combine.
Combine buttermilk and next 5 ingredients in a bowl; pour over bread mixture, stirring well to combine. Stir in Cheddar cheese. Spoon mixture into a 13 x 9-inch baking dish coated with cooking spray.