It was a TV show in 2018.
The show is “Castle Rock” on Hulu. There are 6 seasons of it.
From Wikipedia:
Castle Rock is an American psychological horror television series, featuring and inspired by characters, settings, and themes from the stories created by Stephen King and his fictional town of Castle Rock, Maine.