Ryan started falling apart after his second start in June, I don't remember exactly when he was injured, but I seem to recall hearing during the Atlanta start at the end of June:
Before the Atlanta start: 8-4 W/L record, 2.98 ERA, 100/15 K/BB ratio, 8 HRs allowed, 15 GS, 93.2 IP
Atlanta start to end of season: 3-6 W/L record, 6.62 ERA, 97/19 K/BB ratio, 24 HRs allowed 14 GS, 68 IP including 1-4 W/L record, 8.63 ERA, 52/10 K/BB ratio, 17 HRs allowed in 7 starts, 32. 1 IP from the Atlanta start until going on the IL after his August 2 start.
Hopefully this was just a case of an injury affecting performance, if you remove the Colorado start to end his season his slash line upon returning from the IL was 2-2, 3.82 ERA, 39/8 K/BB ratio, 4 HRs allowed over 30.2 IP covering 6 GS.
Removing the injury plagued starts and the Colorado start, Ryan had a very respectable, even Cy Young consideration worthy season, if carried over the whole season: 10-6, 3.26 ERA, 139/23 K/BB ratio, 12 HRs allowed, 21 GS, 121.1 IP. Let's hope this is the Ryan we get in 2024 over 32 GS and 185 IP.