Black hole ringdown as a probe for dark energy