How to fix messed up vertices after sculpting a model I just started learning to sculpt a model in blender. When I was finished and had switched to edit mode, I ran into a problem

A lot of the vertices were messed up like this. The decimate modifier just messes it up even more.

Is there any way to fix this, I am kinda new to sculpting so I have no idea?
You can use remesh modifier or remesh option from properties or any other tool like instant mesh
Mesh at start:

Remesh Modifier:(make sure not to drag voxel size too quickly or blender will crash)

Remesh option in blender:

Result of remesh option: