A female correction officer allegedly carried on a yearslong sexual relationship with an inmate at a Fishkill prison and is six months pregnant with the inmate's child, State Police at Wappinger said Wednesday.

Investigators arrested Tyshinia Love Brewster, 39, at her Poughkeepsie home and charged her with third-degree rape and official misconduct.

Brewster has been a correction officer at the maximum security, men-only Downstate Correctional Facility in Fishkill for more than seven years, cops said. The inmate is a 33-year-old New York City man who has been imprisoned since 2007 after a felony conviction. Cops didn't release his name or identifying details because they consider him a victim in the case.

Starting in 2010, Brewster and the inmate sneaked into secluded areas of the inmate's cell block to have sex, State Police Investigator Noreen Winterfeldt said.

Brewster was assigned to guard duty in the victim's cellblock, and the inmate worked as a maintenance man in the prison, "so he was able to move fairly freely" throughout the facility, Winterfeldt said.

Authorities were alerted to the relationship by a tipster who called the state office of the inspector general, according to cops. A phone message was left with the inspector general's office Wednesday evening.

advertisement | advertise on newsday

When police questioned Brewster, "She admitted to it being a long-running thing" and admitted she was pregnant with the inmate's child, Winterfeldt said.

Brewster was arraigned Wednesday night in Fishkill Town Court, where a judge issued an order of protection forbidding her from contacting the inmate. The inmate also was moved to another state prison, cops said.

Police charged Brewster with felony third-degree rape because the inmate legally can't consent to a relationship with a correction officer, Winterfeldt said. She also was charged with official misconduct, a misdemeanor charge filed against public servants who allegedly abuse the power of their positions. She was released pending a court hearing March 20. She will face disciplinary action by the inspector general's office as well.

@Newsday

Brewster earned $84,460 last year, state records show. It was unclear whether she had hired an attorney. Attempts to contact her Wednesday night were unsuccessful.