Index: src/wp-includes/general-template.php
===================================================================
--- src/wp-includes/general-template.php	(revision 49708)
+++ src/wp-includes/general-template.php	(working copy)
@@ -4357,6 +4357,15 @@
 			break;
 	}
 
+	/**
+	 * Filters the HTML output of `paginate_links`.
+	 *
+	 * @since 5.7.0
+	 *
+	 * @param string $r HTML output.
+	 */
+	$r = apply_filters( 'paginate_links_output', $r );
+
 	return $r;
 }
 
