MIAMI — Michael Beasley has bounced around in the NBA, but often he’s bounced right back to the Heat. Three times.

When the sliding Knicks (18-20) face the scorching Heat on Friday at AmericanAirlines Arena, Beasley will face his former team with some pangs of regret.

Not once in Miami did Beasley weave the sustained success he’s experiencing now in becoming the Knicks’ most reliable scorer, with Tim Hardaway Jr. out and Kristaps Porzingis in a puzzling shooting funk.

When Beasley looks back on his three Miami stints, he partly blames Heat coach Erik Spoelstra for not being a bigger fan of his.

“I feel I could’ve gotten more out of that organization,’’ Beasley told The Post on Wednesday after scoring a team-high 20 points in the 121-103 loss to the Wizards. “I feel Spo’ could’ve believed in me a lot more than he did. It’s in the past. [There’s] no love lost.”

Told he went to play for Spoelstra three separate times, Beasley said, “I had no choice.”

Beasley is on a tear. After averaging 15.4 points in December, Beasley started the new year with 18- and 20-point outbursts. His average is up to 11.7 points on 52 percent shooting.

His defense and rebounding have been respectable — save for that one brain cramp in the final second of the first half in Washington, where he watched John Wall chase down an offensive rebound and hit a buzzer-beater.

“Yeah, it was me,’’ Beasley said, taking blame.

Miami president Pat Riley drafted Beasley No. 2 in 2008, traded him in 2010 to create cap space for LeBron James and Chris Bosh, then signed him for the 2013-14 season to play alongside James, Dwyane Wade and Bosh. Riley brought him back a third time after the 6-9 forward returned from China late in the 2014-15 season.

Beasley has long sensed his reputation as an enigma entering this season stemmed from coaches such as Spoelstra, who singled him out for the Heat’s defensive woes.

“There’s a lot of guys who didn’t play defense,’’ Beasley said. “When the game is over and it’s 4-2 at the final buzzer, then you can hold one person accountable for the defense. When teams scoring 100 points a game…’’

Beasley has no qualms with Jeff Hornacek, who coaching sources say has let Beasley play through mistakes — contrary to Spoelstra.

Beasley is also comfortable with assistant Kurt Rambis, his former Timberwolves coach who lobbied the Knicks to sign him for the veteran’s minimum, one-year, $2.1 million contract.

And there’s something about Beasley that kept Riley going back.

“He’s a Hall of Famer — one of my favorite people in the world,’’ Beasley said. “He helped me in life.”

Does he owe Riley anything?

“He might owe me some things,’’ Beasley said, declining to explain.

Beasley’s run has MSG Network pumping him for Sixth Man of the Year if this surge continues. His friends believe he should be looked at for Most Improved Player after being discarded by Bucks coach Jason Kidd late last season.

“This is the closest Michael has been to the Kansas State Beasley in his career,’’ one team executive who speaks to Riley said. “It kind of justifies Miami’s pick, showing his innate scoring ability, how he can score so many ways. He’s been in Miami three times, so there’s always been a mutual attraction between Pat and Michael.”

Opponents have yet to make adjustments on Beasley, who’s faced few double teams.

“Maybe they are and maybe they can’t,’’ Beasley said.

“I’m not really iso’ed in spots where you can double-team — middle of free-throw line, on the block, in the corner,” Beasley added. “Coach is doing a great job of putting me in positions where teams find it hard to double.”

Beasley’s minutes will go down once Tim Hardaway Jr. returns, perhaps as soon as 10 days. But Beasley, in and out of the rotation in October and November, has handled well the rotational flux.

“He’s matured as a person,’’ said his new agent, Derrick Powell. “He realizes he’s made some mistakes and wasted some time.”