Bring a large pot of salted water to a boil and cook the pasta according to package instructions until al dente.
Reserve ½ cup of pasta water, then drain the pasta and set aside.
Heat olive oil in a large skillet over medium-high heat.
Add chicken pieces, salt, black pepper, and garlic powder to the skillet.
Cook the chicken for 5 to 7 minutes until golden and cooked through, then remove from the skillet and set aside.
In the same skillet, melt butter over medium heat and sauté the minced garlic for 30 to 60 seconds until fragrant.
Stir in ricotta cheese, heavy cream or milk, Parmesan cheese, and Italian seasoning.
Simmer the sauce gently for 3 to 5 minutes until smooth and slightly thickened.
Return the cooked pasta and chicken to the skillet and toss to coat well with the creamy ricotta sauce.
Add reserved pasta water gradually to loosen the sauce if needed.
Adjust seasoning with salt, black pepper, and optional red pepper flakes.
Serve the pasta warm, garnished with fresh basil or parsley and extra Parmesan if desired.