I feel in the last decade they've been really good in terms of writing. Shows like game of thrones and the flash are great examples of exemplary writing.
MCU is good writing. Tony Stark especially is just well written.
The movies are obviously not works of literature. Super heros are a genre and within that genre the writing is excellent. The writers fulfilled the role well.