Google Books exports highlights and marginalia to a Google Doc titled Notes from “Book Title.” The document includes the highlighted text or the note and a hyperlinked page number. Because it’s in this format, I imagine it wouldn’t be too hard to extract the data via copy paste or maybe even downloading the doc as HTML. I expect the CSS would need some massaging, and obviously this is still a siloed start, but it’s something.