ArcMap has the capability of modifying the patch shape in the legend for raster files (https://desktop.arcgis.com/en/arcmap/latest/map/page-layouts/working-with-legend-patch-shapes.htm). Please bring this capability to ArcGIS Pro. I am aware that it is available for feature classes.