I found this solution, with the aid of ChatGPT and it seems to solve the problem in my case, the script is:
for file in *; do if [[ "$file" == *"_"* ]]; then new_name=$(echo "$file" | sed 's/^[^_]*_//') mv "$file" "$new_name" fi done