st_coordinates provides a matrix of coordinates for all rings in a simple feature column (for each simple feature geometry, outer rings and holes of all polygon
st_coordinates