Maybe Keith Hernandez ought to skip the regional references.

The Fox Sports analyst came under fire Wednesday for a perceived homophobic joke during the World Series Game 7 pregame show.

It began when fellow analyst David Ortiz pretended to lick Hernandez, in a playful reference to Los Angeles Dodgers right fielder Yasiel Puig’s habit of licking his bats.

Hernandez responded by holding up his hand and apparently saying, “I’m not from San Francisco, bro!”

Keith Hernandez: I'm not from San Francisco, bro!! pic.twitter.com/0dM5Om5syA — Camille (@Love_My_Astros) November 1, 2017

But it wasn’t immediately clear if Hernandez, who was born and raised in the Bay Area, was actually saying “I’m from San Fransisco, bro,” which he later seems to imply.

Either way, the online reaction was swift, as many viewed his comment as a swipe at the extensive gay community in the city. Some social media users called him “homophobic.”

In a statement that Fox Sports emailed to HuffPost, Hernandez doled out a public apology, while emphasizing his San Francisco roots. He also insisted that his retort was a nod to the Los Angeles Dodgers-San Francisco Giants rivalry.

“I made a poor attempt at humor and never intended for it to be taken the wrong way,” Hernandez said. “I am from San Francisco and as baseball fans know, the Dodgers/Giants rivalry runs deep. I did not grow up a Dodger fan and when it came down to Giants vs. Dodgers, I rooted for the Giants. I apologize if any offense was taken.”

In a June game at the Dodger Stadium in Los Angeles, Hernandez was covering the Mets for SNY when he said Washington Nationals pitcher Tanner Roark, who had been hit hard in another game, was “getting his tits lit.” In that case, the former MLB star thought he was off the air on a commercial break.

Story continues

Also on HuffPost

The annual horse show on Main Street in Waitsburg, Washington on April 25, 1908.

Walter Davidson, the first president of the Harley Davidson Motor Company, poses with his bike after winning the 1908 Federation of American Motorcyclists' endurance run.

An Italian woman, Anna Schiacchitano, and her children, Paolo (eldest), Mary and Domenico (in Anna's arms), arrive at Ellis Island in May 1908. They are arriving from Sicily to join Anna's husband, Giovanni Gustozzo, in Scranton, Pennsylvania.

Load of logs being pulled by two horses in winter, circa 1908.

Messenger boys stand outside a telegraph office in Indianapolis, Indiana, in August 1908.

A man and woman display their fish catch, circa 1908.

Orville Wright demonstrates the Wright bi-plane in Fort Myer, Virginia, in 1908.

Excavation for Grand Central Terminal in New York City, circa 1908.

American inventor and manufacturer Henry Ford drives an early tractor, which he called an "automobile plow," powered by a 1904 Model-B-type engine on one of his farms near Dearborn, Michigan, circa 1908.

Luna Park, Coney Island, Brooklyn, New York, 1908.

Love HuffPost? Become a founding member of HuffPost Plus today.

This article originally appeared on HuffPost.