On Godot 4 the object Vector2 provide the method angletopoint(Vector2). Objects based in Node2D provide transform properties like position property, for situate the Node2D, wich is a Vector2 and you can get angle respect to another position (vector2). The result angle (in radians) is necesary to normalize so that fit with the expected, for example adding 180 grades:
self.rotation = self.position.angle_to_point(forwardPosition);
self.rotation_degrees = self.rotation_degrees + 180; #optional, for fit