Alex Perez was scheduled for a flyweight fight against Manel Kape at UFC on ESPN: Vera vs. Sandhagen in San Antonio on Saturday, but he withdrew from the fight citing what he revealed was a serious health issue.

Perez wrote on social media Sunday that he suffered a seizure while warming up for the fight.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Alex Perez warms up backstage during UFC 277 at the American Airlines Center on July 30, 2022 in Dallas. (Mike Roach/Zuffa LLC)

«First of all I want to thank everyone for all the support and concerns,» her Instagram post read. «I was doing my pre-fight warmup and had a seizure. I immediately received medical attention.

«My hydration, electrolytes, etc. were more than adequate. This has nothing to do with the weight cut. It was one of the easiest cuts of my career. I will have more tests in the coming weeks to determine the cause. I appreciate the privacy. My (apologies) to my opponent and fans. Thank you to the UFC medical team for your help and support.»

UFC FIGHTER HOLLY HOLM CALLS FOR AN END TO SEXUALIZATION OF CHILDREN

Alex Perez, left, and Manel Kape face off during the ceremonial weigh-in for UFC Fight Night at the AT&T Center on March 24, 2023 in San Antonio.

Alex Perez, left, and Manel Kape face off during the ceremonial weigh-in for UFC Fight Night at the AT&T Center on March 24, 2023 in San Antonio. (Josh Hedges/Zuffa LLC)

Pérez was ranked #6 in the official UFC flyweight rankings with an overall record of 24-7.

The 31-year-old last won in June 2020 with a technical knockout of Jussier Formiga. He then lost to Deiveson Figueiredo in November 2020 and then Alexandre Pantoja in July 2022.

He only lost four fights before coming to the UFC.

Alex Perez steps on the scale for the official weigh-ins at the Westin San Antonio North for UFC Fight Night - Vera vs Sandhagen - Weigh-ins on March 24, 2023 in San Antonio.

Alex Perez steps on the scale for the official weigh-ins at the Westin San Antonio North for UFC Fight Night – Vera vs Sandhagen – Weigh-ins on March 24, 2023 in San Antonio. (Louis Grasse/PxImages/Icon Sportswire via Getty Images))

CLICK HERE TO GET THE FOX NEWS APP

It is unclear when Perez’s next fight will take place.