diff --git src/wp-includes/blocks/index.php src/wp-includes/blocks/index.php
index 128a06bea2..3228638eb0 100644
--- src/wp-includes/blocks/index.php
+++ src/wp-includes/blocks/index.php
@@ -70,7 +70,7 @@ function register_core_block_style_handles() {
 		$files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) );
 		$files = array_map(
 			static function ( $file ) {
-				return str_replace( BLOCKS_PATH, '', $file );
+				return str_replace( wp_normalize_path( BLOCKS_PATH ), '', $file );
 			},
 			$files
 		);
