visual studio error

error: command ‘C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\bin\HostX86\x86\cl.exe’ failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for regex
Failed to build regex
ERROR: Could not build wheels for regex, which is required to install pyproject.toml-based projects

+I am getting this error in terminal, What should I do

Hey,
Could you provide more information about the program you are running and the type of command you are using?