Two weeks ago I bought a bag of Starbucks Espresso Roast. The Best By date was over 6 months in the future. It tasted lousy. I set it aside and bought another with Best By date 5 months in the future (November 2023). It was fabulous. Somewhere I read a blog post about roasting coffee and to let it rest for two weeks before using. That previous bag that was so awful has now been resting for two weeks. I made a latte with it today and it was much better, about average for Starbucks Espresso Roast.
I am also going back to Starbucks and buy a bag or two of the November Best By batch.