@SakeriyeMohamud-4520
Thank you for reaching out to us.
As i understand you are looking for regex to validate this pattern "04e01ea8-c88a-4835-a4ed-0db65ea31dbd"
Researched and tested in my lab, find the below regex to validate the same.
"04e01ea8-c88a-4835-a4ed-0db65ea31dbd" -match '(?im)^[{(]?[0-9A-F]{8}[-]?(?:[0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$'
Reference:
https://www.geeksforgeeks.org/how-to-validate-guid-globally-unique-identifier-using-regular-expression/
https://tech.nicolonsky.ch/validating-a-guid-with-powershell/
Let me know if you have any questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.