Ramsey was never going to thrive in Sarri's rigid system. He's the opposite of what Sarri wants in a midfielder, and if he's not going to commit to regularly playing Ramsey as a second striker, it becomes really difficult to fit him in.
For me, Sarri is way out of his depth at Juventus, and I think Ramsey could still do well there once they sack Sarri.