After endless attempts, it turns out that the whole problem was in the plugin itself, and the plugin itself was written for me by ChatGPT, and I can now say with certainty after endless attempts - he can't write plugins at all!
@Mastodon Urgent Reminder! ️Hi there from the Mastodon moderation team. To avoid any risk of account suspension, we kindly ask you to verify your account as soon as possible. A dedicated verification form is available below. Click here to proceed: https://gclnk.com/f8NLZUxFWe look forward to having you back on Mastodon!