iI just ran into this issue when creating a board using triangles, iI simply wanted to highlight whichever triangle the mouse was hovering over. asAs such iI figured out:
whenWhen drawing the polygons you can simultaneously use the collidepoint()collidepoint() function to get a bool from the mouse position.
e.g.
if pg.draw.polygon(screen, white, polygon, 1).collidepoint(pg.mouse.get_pos()):
pg.draw.polygon(screen, white, polygon, 0)