[Bug] Brave's open tabs next to current does not work properly

Description of the issue:
Brave’s open tabs next to current does not work properly.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

  1. Launch Brave
  2. Open three new tabs, preferably ones with links.
  3. Switch through all 3 tabs using the next/previous tab keyboard shortcuts Ctrl+PgUp / Ctrl+PgDwn (make sure the browser has correctly indexed tab order)
  4. Switch back to Tab #1 (left-most tab)
  5. Find links on the page and open them to new tabs by middle-mouse-clicking

Actual Result (gifs and screenshots are welcome!):
Step 5 onwards: new tabs should open to the right of the current tab. Only the first tab is opened to the right, subsequent tabs opens to the right of the last opened tab etc.

Expected result:
Step 5 onwards: new tabs should open to the immediate right of the current tab, with the “oldest” tab rightmost, and newest opened tab left of current tab.

Reproduces how often:
Always

Operating System and Brave Version(See the About Brave page in the main menu):
Windows 10 22H2 x64

Additional Information:
This appears to also be an issue on (pardon my language) Google Chrome, so it may be a chromium bug.
The tab order indexing appears to be broken: Newly opened tabs are opened (via middle mouse button) after the current keep opening after the last opened tab (pointer keeps increasing for “current” tab).
The moment we move the “current” opened tab and repeat, the tab order index gets recalculated the moment we move, and the whole process starts again.
The index issue appears to be with what happens to opened tabs. It feels like opening a tab shifts all previous tab indexes “backwards” by 1 (-1), but does not refresh the index of the “current” tab, with the index in memory of where to open tabs remaining constant.
It should probably be something like for the index handling code when new tabs are opened:

  • Open new tab, new tab gets index “Current”
  • All tabs before “current” gets “Index -= 1”
  • “Current_Tab_Index -= 1”
    or something similar based on relative tab positions - i.e. tab index is as we see, and newly opened tabs are opened to the right of the current, not right of whatever wrong index was stored in memory.

Suggestion:
If this behavior does get fixed, it may be best to add it as a new option in settings given how people do not like change.
Make it optional and a “selling point” of Brave - A browser that opens tabs right (pun intended), unlike competitors that relies on plugins to open tabs right.

Links to related posts:

In that post and user posted solutions, they are referencing how new (blank) tabs are opened.
The mentioned solutions (and the post itself) do not reference how new links/URLs are opened.

There is currently no way to achieve a similar functionality to “New tab to the right” in brave://settings/system/shortcuts with regards to opening links/URLs (especially with the middle mouse button or using the mouse right click context menu).