There is no such function but also not all formats support highlighting, e.g., plain text.
On the extraction, I meant something that would perhaps extract all highlighted sections of a document into a new note or just extract as an export of some kind.
Ahh. With a highlighted document selected, e.g. PDF, use Tools > Summarize Annotations and choose the format.