Per my test and research, query spelling correction only works in classic search, not in modern search.
From this article, note the Applies to bar, SharePoint in office 365 is not supported.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.