This happened to my 2017 Chevy Malibu. If I remember correctly, they had to replace the shifter assembly. The work was completed the same day. Make sure when you get that message your radio and such turns off after exiting the vehicle. My radio, and lights all stayed on. Nice to know three years later, this is still an issue with Chevy vehicles.
I have a 2019 RS Blazer now.