Cook the pasta: Boil in salted water until just shy of al dente. Drain and set aside.
You want it slightly firm so it doesn’t get mushy in the oven.
Crisp the bacon: In a large skillet, cook bacon until crisp. Transfer to a paper towel–lined plate. Crumble when cool.
Reserve 1 tablespoon bacon fat if you like extra flavor.
Sauté aromatics: In the same skillet, add olive oil or reserved bacon fat. Cook onion over medium heat until soft and translucent, 3–4 minutes. Stir in garlic for 30 seconds.
Build the sauce: Sprinkle in the flour and cook for 1 minute, stirring.
Whisk in milk and chicken broth until smooth. Add cream cheese and stir until melted and creamy.
Season and enrich: Stir in sour cream or Greek yogurt and the ranch seasoning. Simmer gently for 1–2 minutes.
Taste, then season with salt and pepper as needed.
Combine the casserole: In a large bowl, mix the cooked pasta, chicken, half the bacon, broccoli (if using), and 1 cup of shredded cheese. Pour the sauce over and toss to coat evenly.
Assemble and top: Transfer to a greased 9x13-inch baking dish. Sprinkle the remaining 1 cup cheese and the rest of the bacon on top.
Bake: Bake at 375°F (190°C) for 18–22 minutes, until bubbly and the cheese is melted and lightly golden at the edges.
Finish and serve: Let it rest 5 minutes.
Garnish with parsley or chives. Serve warm.