Preheat your oven to 350°F (175°C).
In a frying pan over medium heat, cook the diced onion until it becomes translucent, about 5 minutes.
In a large mixing bowl, combine the baked beans, cooked bacon, cooked onion, barbecue sauce, brown sugar, mustard, Worcestershire sauce, black pepper, garlic powder, and smoked paprika (if using). Mix well until the ingredients are fully combined.
Pour the mixture into a 9x13-inch baking dish, spreading it evenly.
Bake in the preheated oven for 30-35 minutes, or until the beans are bubbly and heated through.
Remove from the oven and let it cool slightly before serving.
For extra flavor, you can add diced bell peppers or jalapeños to the mixture before baking.
If you prefer a vegetarian version, simply omit the bacon and use a vegetarian-friendly barbecue sauce.