Cook the orzo according to the directions on the package.
Put cubed chicken into a small bowl. Press garlic cloves over it and season with salt, pepper, red pepper, rosemary, and juice of 1 lemon. Toss to combine.
While the orzo cooks, heat up 2 tablespoons of olive oil in a large cast iron skillet over medium heat. When pan is hot, add chicken. Cook chicken for about 2-3 minutes per side or until the chicken is golden brown and cooked through. Once chicken is cooked, add spinach and cook for about a minute until spinach just begins to wilt. Add in pesto, tomatoes, orzo, and grated Parmesan. Stir to combine thoroughly. Once combined, top with shredded cheese. Broil for 2 minutes or until cheese melts or bake for 20 minutes at 350 until cheese melts and bubbles. Enjoy!