Real Engineers take a Fundamentals of Engineering exam followed by the Professional Engineering exam in their discipline/focus. Then Engineers have to stay with the associated Professional Society (so many hours of training a year; paying dues; etc).
In the Software industry we love using the title "Engineer", but we don't seem to want to put the work in to make it an actual engineering profession. There is a software PE exam and professional society in existence already (ACM) built and willing to be the professional society for software engineering. I would take the Software PE exam and pay my ACM member dues in a heartbeat if that meant never needing to do another leetcode or take home assignment or whiteboard exercise in an interview cycle. We have the tools to solve this, just not the will to solve it, it seems.