Jeremy Lin’s season ended in the Nets’ opener in Indiana. (Brian Spurlock/USA Today)

Jeremy Lin’s expression showed immediately that he suffered a serious injury in the Brooklyn Nets’ season opener Wednesday night.

Lin and the Nets learned that he will miss the rest of the season with a ruptured patellar tendon in his right knee. “Gods [sic] ALWAYS faithful and in control,” Lin tweeted after the game, before further tests revealed the extent of the injury. The Nets announced the news, first reported by ESPN, Thursday morning.

“Jeremy worked tremendously hard during the offseason and in training camp and was excited for the prospects of the team this season,” Nets General Manager Sean Marks said in a statement. “We feel awful that the injury will cost him the season, however our entire organization will be there to support Jeremy in every way possible throughout his recovery. Jeremy remains an important part of this team and will continue to contribute in a leadership role.”

Lin’s was the second season-ending injury in as many nights of the NBA season. In the opener Tuesday, Gordon Hayward of the Boston Celtics suffered a dislocated ankle and fractured tibia.

Read more from The Post:

Nike’s NBA jerseys haven’t exactly been a rip-roaring success

Gordon Hayward leaves Celtics an uplifting message but reportedly is unlikely to play this season

Gregg Popovich’s Spurs stand for the national anthem — and take a stand with a scoreboard message

In Wizards, the 76ers see a process that’s further along