Had the same problem. turned out to be caused by an extension, where an extra indent was added after the auto-indent causing functions to be misaligned. try fixing by disabling Pylance extension, you can re-enable it after and the problem should go away.