Maglica made 40 appearances for VfB U21s in the Regionalliga Southwest and made his Bundesliga debut for the first team in November 2021. The start of 2022 saw the 1.96m defender make the move to the Swiss Super League. The Croatian made 52 appearances in all competitions for St. Gallen, scoring four goals. Maglica has signed a contract with the Cannstatt club valid until 30 June 2025.