Materials with border for plane

Hello everyone, is there a way to get a material that will outline the borders of the regions in the same way as when I selected (in the screenshot)? It’s a regular plane, so most of the options I tried don’t work with it. The region itself will be transparent, I only need the borders for the visuals, as the meshes will only be used for mouse interaction.