Cursor not at correct place after tab

When I type a tab at the beginning of a line, the cursor initially moves forward by 2 spaces. However, if I type anything after the tab, the cursor suddenly jumps to the 4-space position. Is there a way to disable this “sudden jump”?
Screen Recording 2024-12-19 at 20.41.43

I also want to use spaces at the beginning of lines to align my Markdown source code better. However, as the fig below, there is a sudden jump from 3 spaces to 4 spaces.
image

I conjecture the 2 behaviors are due to similar reasons. Anyway to resolve them?

I have reported a bug, which might be due to a similar issue you are facing. Can you please confirm if you are also facing this issue : Data hides in the Reading Mode and Cursor position bug for Multi-level Indentation

It seems like, few people are facing it, but few are getting the content rendered properly.