In Germany you have Meinungsfreiheit (freedom of opinion):
(1) Every person shall have the right freely to express and disseminate his opinions in speech, writing and pictures and to inform himself without hindrance from generally accessible sources. Freedom of the press and freedom of reporting by means of broadcasts and films shall be guaranteed. There shall be no censorship.
(2) These rights shall find their limits in the provisions of general laws, in provisions for the protection of young persons and in the right to personal honour.
So in general the line of reasoning is NOT that certain ideologies are illegal. The line of reasoning is that freedom of expression finds its limits if you violate the law and/or the rights and freedoms of other people.
So if you read §130 StGB (German penal code) carefully you'll see that this actually refers to "incitement of the masses"
(1) Whoever, in a manner suited to causing a disturbance of the public peace,
- incites hatred against a national, racial, religious group or a group defined by their ethnic origin, against sections of the population or individuals on account of their belonging to one of the aforementioned groups or sections of the population, or calls for violent or arbitrary measures against them or
- violates the human dignity of others by insulting, maliciously maligning or defaming one of the aforementioned groups, sections of the population or individuals on account of their belonging to one of the aforementioned groups or sections of the population
incurs a penalty of imprisonment for a term of between three months and five years.
So the main point isn't about abolishing national socialism as much as protecting the "inviolable right to dignity" explicitly stated in Article 1 of the German constitution.
(1) Human dignity shall be inviolable. To respect and protect it shall be the duty of all state authority.
(2) The German people therefore acknowledge inviolable and inalienable human rights as the basis of every community, of peace and of justice in the world.
(3) The following basic rights shall bind the legislature, the executive and the judiciary as directly applicable law.
Now how you'd do fascism without demonizing an other, idk, but that is their problem, not one of any law abiding citizen.
Now to be fair subsections (3) and (4) directly target disturbing the public peace by (3) downplaying nazi crimes or (4) glorifying the nazi reign, but again neither targets any ideology explicitly.
Of course talking about "a great nation in decline" and how previously "everything has been great before the degeneracy of the democratic system" and other fascist tropes, is a tough sale with the Nazis and WWII in the history books, but there are few historic fact more established, researched and corroborated by evidence.
So if you have to value the dignity of the victims of the Nazi crimes against Neo-nazi aspiration to lie about history, well Germany made a rather obvious decision.
On top of that §86 and §86a StGB specify the dissemination and public display of propaganda material of parties who received a final verdict of being unconstitutional. Which obviously famously applies to original Nazi party NSDAP as well as their sub-organizations.
That's why you can't do Hitler salutes, show swastikas or whatnot. Though that is also just meant for their usage for promotional usage or lack of context, whereas "to prevent unconstitutional activities, to promote the arts or science, research or teaching, reporting about current or historical events, or similar purposes." is not a crime. So history books and non fascist documentaries and whatnot might still show original footage or whatnot without going to jail.
Now Germans also have a right to assemble.
Article 8 [Freedom of assembly]
(1) All Germans shall have the right to assemble peacefully and unarmed without prior notification or permission.
and a freedom to associate and form groups and parties:
Article 9[Freedom of association]
(1) All Germans shall have the right to form societies and other associations.
(2) Associations whose aims or activities contravene the criminal laws or that are directed against the constitutional order or the concept of international understanding shall be prohibited.
So (2) forbids associations with the goal to do criminal stuff or overthrow the constitution. You still have freedom of opinion though, that is just getting into practical matters.
On top of the mere association you can also form political parties:
Article 21 [Political parties]
(1) Political parties shall participate in the formation of the political will of the people. They may be freely established. Their internal organisation must conform to democratic principles. They must publicly account for their assets and for the sources and use of their funds.
(2) Parties that, by reason of their aims or the behaviour of their adherents, seek to undermine or abolish the free democratic basic order or to endanger the existence of the Federal Republic of Germany shall be unconstitutional.
(3) Parties that, by reason of their aims or the behaviour of their adherents, are oriented towards an undermining or abolition of the free democratic basic order or an endangerment of the existence of the Federal Republic of Germany shall be excluded from state financing. If such exclusion is determined, any favourable fiscal treatment of these parties and of payments made to those parties shall cease.
(4) The Federal Constitutional Court shall rule on the question of unconstitutionality within the meaning of paragraph (2) of this Article and on exclusion from state financing within the meaning of paragraph (3).
(5) Details shall be regulated by federal laws.
Which are more established organization with rights and duties, that are required to be internally democratic and which must not seek to undermine the "Freiheitlich Demokratische Grundordnung" (liberal democratic basic order, though liberal in the sense of concerning individual liberty not some economic liberalism) or endanger the state itself. If they do, their funding and favorable fiscal treatment is discontinued and their name symbols or whatnot become subject to §84-§86a StGB (continuation despite ban, forming of a successor despite ban, propaganda, usage of symbols).
Which apparently also includes the successor to the NSDAP the SRP and the communist party of Germany KPD, which technically also means that the KPD letters as well as the hammer and sickle are banned. Though practically it's really weird (German source), because apparently since the Democratic Republic of Germany joined the Federal Republic of Germany, with all their parties and organizations (including the KPD which together with the SPD formed a new party the SED), there's now both a legal and an illegal KPD, also as hammer and sickle are also symbols used world wide without reference to a particular German party only the usage in that particular context is illegal.
So again it's not the really any particular ideology that is banned but rather concrete crimes and organizations with the aim to commit crimes. Though to be fair given that democracy is a pretty leftist concept to begin with Neo-Nazis are just more prone to violate the law in general and avoiding to violate the law would almost require them not to be National Socialists, which is fully intended, but doesn't require a specific ideological ban.
On the other hand Anarchism, so the idea that nobody should rule over other people, simply doesn't have much of those intrinsic problems. So inciting racism, sexism, homophobia, xenophobia and so on simply isn't part of the anarchist agenda and would actually violate their own principles before violating the laws.
Also as anarchists often have a problem with rigid organizational structures, those bans on parties and clubs are way less likely to affect them, in that regard as they don't usually organize as such in the first place.
There are organizations like anarcho-syndicalist unions like the FAU, but as long as they are busy doing union stuff and don't try to overthrow the government, they are on the radar of the Verfassungsschutz (police tasked with the protection of the constitution) but they aren't necessarily an immediate necessity to intervene.
So what is more likely is that individuals are arrested for crimes outside of the political movement or for violations of laws due to acting outside of the legal context. But as long as there's no revolutionary violence the state is suspicious of them and count them as left-wing extremism due to their tendency to so radically being in favor of democracy that they would ultimately also are antagonistic to the state itself, but unless that cannot be tied to actual crimes, it's not illegal per se.
Also there's the distinction between anti-constitutional and unconstitutional where it's within your freedom of opinion to be against the constitution, as otherwise you'd never be able to change it, that being said, there are legal ways to change it and going outside of that framework marks something unconstitutional and thus subject to the criminal law, including bans and whatnot.
So TL;DR Anarchists are less likely to violate the law (with regards to human dignity and being against freedom and democracy (on the contrary)), and where they violate the law they usually aren't organized in criminal organizations that can be effectively banned. Sure some "Autonome" may be linked to petty crimes and vandalism, but that's not really the "effective aim to dismantle the state" or "incitement of violence and disturbance of the public peace" or if their effective means to dismantle the state involve demonstrations, educating about democracy and practicing democratic forms of organization, then the goal might be problematic but all of the actions are perfectly legal, even explicitly allowed in the constitution and often encouraged in a democratic system. So where even neo-fascist organizations are granted those rights with the benefit of the doubt, before proving they are unconstitutional, it's hard to argue in that direction.
And even where it militant you need to link them to a specific project that you want to ban, otherwise you can only target the individual not the collective.